diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a0cb15f..c4f6606 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,6 +15,11 @@ on: - '.github/workflows/CI.yml' workflow_dispatch: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + jobs: build: strategy: @@ -40,11 +45,11 @@ jobs: - name: Check buildx bake run: docker buildx bake --file docker-bake.hcl --print - - name: Publish an image for tag ${{ matrix.target }} + - name: Build image for tag ${{ matrix.target }} if: github.ref == 'refs/heads/master' run: docker buildx bake --file docker-bake.hcl ${{ matrix.target }} --load - - name: Publish an image for tag ${{ matrix.target }} + - name: Publish image for tag ${{ matrix.target }} if: github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch' run: docker buildx bake --file docker-bake.hcl ${{ matrix.target }} --push