Skip to content

Commit

Permalink
removed instrumentation and support for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSin9h committed Mar 12, 2024
1 parent 8f39662 commit ead0699
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 74 deletions.
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

16 changes: 2 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build docker image
- name: build go application
run: |
docker build -t meltred/meltcd:head .
- name: publish docker image
if: github.ref == 'refs/heads/main'
run: |
echo ${{ secrets.DOCKER_HUB }} | docker login -u "meltred" --password-stdin
docker push meltred/meltcd:head
docker logout
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "kunalsin9h" --password-stdin
docker image tag meltred/meltcd:head ghcr.io/meltred/meltcd:head
docker push ghcr.io/meltred/meltcd:head
go build main.go
23 changes: 0 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,3 @@ jobs:
args: release --clean --skip=validate
env:
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}

- name: build docker image
run: |
docker build -t meltred/meltcd:${{ steps.vars.outputs.latest_tag }} .
- name: push docker image
run: |
echo ${{ secrets.DOCKER_HUB }} | docker login -u "meltred" --password-stdin
docker push meltred/meltcd:${{ steps.vars.outputs.latest_tag }}
docker image tag meltred/meltcd:${{ steps.vars.outputs.latest_tag }} meltred/meltcd:latest
docker push meltred/meltcd:latest
docker logout
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u "kunalsin9h" --password-stdin
docker image tag meltred/meltcd:latest ghcr.io/meltred/meltcd:${{ steps.vars.outputs.latest_tag }}
docker push ghcr.io/meltred/meltcd:${{ steps.vars.outputs.latest_tag }}
docker image tag ghcr.io/meltred/meltcd:${{ steps.vars.outputs.latest_tag }} ghcr.io/meltred/meltcd:latest
docker push ghcr.io/meltred/meltcd:latest
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions docker-compose.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion internal/core/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (l *LogsStreamSessions) RemoveSession(s *chan []byte) {
if idx != -1 {
l.MU.Lock()

l.Sessions[idx] = nil
l.Sessions[idx] = nil // To Be Garbage Collected
l.Sessions = slices.Delete(l.Sessions, idx, idx+1)

l.MU.Unlock()
Expand Down

0 comments on commit ead0699

Please sign in to comment.