diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fe97b1..d57b470 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,8 @@ concurrency: jobs: docker-build: runs-on: ubuntu-latest + env: + BUILD: ${{ github.event.number }} steps: - name: Git clone uses: actions/checkout@v3 @@ -21,5 +23,5 @@ jobs: run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Docker build run: | - docker build -t ghcr.io/golang-cz/static-analysis . - docker push ghcr.io/golang-cz/static-analysis + docker build -t ghcr.io/golang-cz/static-analysis-$BUILD . + docker push ghcr.io/vcilabs/static-analysis-$BUILD