Skip to content

Agent Mesh

ci(deploy): serialize deploys per environment

Antonio Ojeae8a770837d5c
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index e3de06fa..a50b1997 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -8,6 +8,15 @@ on:
- 'v*.*.*'
workflow_dispatch:
+# Serialize deploys per-environment so a burst of pushes (e.g. several
+# dependabot PRs merging back-to-back) can't run concurrently against the
+# same GKE namespace and race on shared resources (e.g. the dns-sync-rollout
+# job name). Keeps only the latest queued run per environment; never cancels
+# one already in progress.
+concurrency:
+ group: deploy-${{ github.ref_type == 'tag' && 'hub' || 'bananas' }}
+ cancel-in-progress: false
+
env:
REGISTRY: ghcr.io