Skip to content

Commit

Permalink
chore: disable concurrency build (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Mar 13, 2024
1 parent ac7ef05 commit 3365560
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
- '.github/workflows/CI.yml'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
strategy:
Expand All @@ -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

Expand Down

0 comments on commit 3365560

Please sign in to comment.