Skip to content

Commit

Permalink
Merge pull request #87 from dokku/concurrency
Browse files Browse the repository at this point in the history
Use ci-concurrency to cancel older builds automatically
  • Loading branch information
josegonzalez committed Oct 16, 2023
2 parents 3ab9367 + 9f6bc87 commit bc27104
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types:
- completed

concurrency:
group: docker-push-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
push-enabled:
name: push-enabled
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- 'master'

concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
hadolint:
name: hadolint
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/trivy-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- master
pull_request:

concurrency:
group: trivy-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
trivy-analysis:
name: trivy-analysis
Expand Down

0 comments on commit bc27104

Please sign in to comment.