Skip to content

Commit

Permalink
Ensure concurrency control for canary and release workflows (#3243)
Browse files Browse the repository at this point in the history
ci: Ensure concurrency control for canary and release workflows

- Added concurrency configuration to `porter-canary.yml` to prevent multiple canary releases from running simultaneously.
- Added concurrency configuration to `porter-release.yml` to prevent multiple releases from running simultaneously.

Signed-off-by: Kim Christensen <[email protected]>
  • Loading branch information
kichristensen authored Nov 13, 2024
1 parent 4f585db commit 22170ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/porter-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
branches:
- main
- release/*

# This configuration ensures that multiple canary releases don't run at the same time:
# - The 'group' combines the workflow name and git reference to create a unique identifier
# - 'cancel-in-progress: false' means if a new release is triggered, it will wait in line
# instead of canceling any running release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build_pipelinesrelease_template:
name: build_pipelinesrelease_template
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/porter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
- "!latest*"
- "!canary*"

# This configuration ensures that multiple releases don't run at the same time:
# - The 'group' combines the workflow name and git reference to create a unique identifier
# - 'cancel-in-progress: false' means if a new release is triggered, it will wait in line
# instead of canceling any running release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build_pipelinesrelease_template:
name: build_pipelinesrelease_template
Expand Down

0 comments on commit 22170ca

Please sign in to comment.