Skip to content

Commit 41ddd34

Browse files
levivannoortclaude
andcommitted
ci: serialize deploy jobs with a shared concurrency group
Add a job-level concurrency group (declarative-deploy) shared across the staging and production deploy jobs so they can't push to the GitOps repo at the same time. Builds still run in parallel. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a58117b commit 41ddd34

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/production.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
deploy:
5757
needs: build
5858
runs-on: ubuntu-latest
59+
concurrency:
60+
group: declarative-deploy
61+
cancel-in-progress: false
5962
steps:
6063
- name: Get token for ${{ env.DECLARATIVE_REPOSITORY }}
6164
id: app-token

.github/workflows/staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
deploy:
5858
needs: build
5959
runs-on: ubuntu-latest
60+
concurrency:
61+
group: declarative-deploy
62+
cancel-in-progress: false
6063
steps:
6164
- name: Get token for ${{ env.DECLARATIVE_REPOSITORY }}
6265
id: app-token

0 commit comments

Comments
 (0)