Design a progressive delivery pipeline from merge to production using GitHub Actions and environments.
AdvancedProductionGitHub Actions, environments and releases in production
Answer
Merge to main builds one immutable image tagged with the SHA. A dev environment deploys automatically, integration tests run, staging deploys with a smoke suite, and production needs a required reviewer and a wait timer. Production rolls out via canary (Argo Rollouts or similar) with automated analysis and rollback on error-rate SLO breach. Every stage uses the same digest, and each deploy is recorded as a GitHub Deployment so the history is visible.
More on GitHub Actions, environments and releases in production
How do you structure workflows for a typical service (build, test, deploy)?BeginnerHow do reusable workflows differ from composite actions and when do you use each?IntermediateHow do you speed up slow GitHub Actions pipelines?IntermediateHow do you manage secrets and variables across org, repo and environment levels?IntermediateWhat does `concurrency` do in a deploy workflow and why does it matter?BeginnerHow do you automate versioning and release notes?Intermediate