CI/CD Patterns
When to use
Use when designing, optimizing, or troubleshooting CI/CD pipelines. Covers workflow structure, caching strategies, deployment automation, and cross-platform pipeline patterns.
Core principles
- Pipeline as code — version-controlled, reproducible, reviewable
- Fast feedback — fail fast with parallel jobs and test splitting
- Immutable artifacts — build once, deploy many
- Secret hygiene — OIDC federation over static secrets
- Progressive delivery — automated gates between environments
References available
references/github-actions-patterns.md— Reusable workflows, matrix builds, caching, OIDC secrets, composite actionsreferences/gitlab-ci-patterns.md— DAG pipelines, includes/extends, environments, review apps, auto DevOpsreferences/pipeline-optimization.md— Parallel jobs, test splitting, artifact caching, incremental builds, build matrixreferences/deployment-strategies.md— Blue-green, canary, rolling for k8s, Vercel, AWS ECS
Scripts available
scripts/detect-ci.sh— Detects CI platform from project files (.github/workflows, .gitlab-ci.yml, Jenkinsfile, etc.)
Assets available
assets/github-actions-template.yaml— Lint, test, build, deploy workflow templateassets/gitlab-ci-template.yaml— Equivalent pipeline for GitLab CI
Converted and distributed by TomeVault — claim your Tome and manage your conversions.