Skip to content

Commit fd332a4

Browse files
committed
ci: add concurrency cancel-in-progress to deploy workflows
Prevents stacked deploys when commits are pushed in quick succession. A new push cancels the in-flight CI run before it reaches kubectl, avoiding the window where both the old and new pods are 0/1.
1 parent 7073593 commit fd332a4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
required: false
1111
type: string
1212

13+
concurrency:
14+
group: deploy-staging-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
env:
1418
ACR_NAME: adracr
1519
IMAGE_NAME: ckan

.github/workflows/release-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
required: true
1818
type: string
1919

20+
concurrency:
21+
group: deploy-production-${{ github.ref }}
22+
cancel-in-progress: true
23+
2024
env:
2125
ACR_NAME: adracr
2226
IMAGE_NAME: ckan

0 commit comments

Comments
 (0)