CICD-169 · Serialize production jobs
Encyclopedia · Deployment and rollback · All snippets
Previous · CICD-168 · Next · CICD-170
1. Where it fits
- Placement .github/workflows/ci.yml, inside the relevant job.
- Prerequisites protected staging environment and trusted immutable release artifacts.
- Platforms github-actions, gitea-actions.
2. Copy the snippet
yaml
concurrency:
group: web-production-deploy
cancel-in-progress: false3. How it works
The concurrency group determines which active or pending jobs contend for the same slot.
4. Verify the result
Prevent parallel writes and inspect platform queue semantics for pending job supersession.
Validation syntax-validated (YAML parse). Status definitions.