Skip to content

Commit

Permalink
ci: add concurrency setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Dec 31, 2021
1 parent 43cab21 commit ccedeca
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: build-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
- uses: rlespinasse/[email protected]
- name: Build docker image
Expand All @@ -21,8 +23,16 @@ jobs:
make test
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}

release:
runs-on: ubuntu-latest
needs: build
concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
steps:
- uses: actions/checkout@v2
- name: Release this docker image
uses: rlespinasse/release-that@v1.x
uses: rlespinasse/release-that@v1
with:
without-prefix: true
github-token: ${{ secrets.GH_TOKEN }}

0 comments on commit ccedeca

Please sign in to comment.