Skip to content

Commit

Permalink
Configure docker workflow to cancel previously running builds (#286)
Browse files Browse the repository at this point in the history
Currently if a docker workflow is triggered, and then another event
that triggers the workflow comes in, it will build the container
twice.  This should cancel the previous run so we're not burning
through github actions minutes for no reason

Co-authored-by: pputman12 <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent 710ed3d commit 1834e2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-build-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
workflow_dispatch:

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

Expand Down

0 comments on commit 1834e2c

Please sign in to comment.