Skip to content

Commit 2569896

Browse files
committed
Control deployment pipeline concurrency
Ensure: - 2 deployments don't run at the same time on the same environment - deploy and destroy a review app don't run at the same time
1 parent 0e5c325 commit 2569896

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/cicd-1-pull-request-closed.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
id-token: write
1313
runs-on: ubuntu-latest
1414
environment: review
15+
concurrency: deploy-review-${{ github.ref }}
16+
1517
steps:
1618
- name: Checkout code
1719
uses: actions/checkout@v4

.github/workflows/stage-4-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
environment: ${{ fromJson(inputs.environments) }}
2626
max-parallel: 1
2727
environment: ${{ matrix.environment }}
28+
concurrency: deploy-${{ matrix.environment }}-${{ github.ref }}
2829

2930
steps:
3031
- name: Checkout code

0 commit comments

Comments
 (0)