Skip to content

fix: fixing dockerfile and removing artillery script #37

fix: fixing dockerfile and removing artillery script

fix: fixing dockerfile and removing artillery script #37

Workflow file for this run

name: Main Workflow
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
DOCKER_IMAGE_TAG: ghcr.io/gustavobertoi/realtime:latest
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.22
- uses: golangci/golangci-lint-action@v3
publish-docker-image:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs:
- lint
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker build . --tag $DOCKER_IMAGE_TAG
- run: docker push $DOCKER_IMAGE_TAG