1. Commit and build
Jenkins · GitHub Actions
A push triggers the build automatically. The code is compiled, the Docker image is built, and the image is tagged with the commit — so what is deployed is always traceable to exactly one change. No more “which version is running?”.
2. Test automatically
Fail fast, fail in CI
Unit and integration tests run on every build. A failing test stops the pipeline before anything is packaged for deployment. It is far cheaper to catch a bug here than in production at midnight — and it is the stage teams are most tempted to skip.
3. Build once, deploy many
One image, every environment
The same image that passed tests in staging is the one that goes to production. Rebuilding per environment is how “works in staging” becomes “broken in production”. Configuration changes per environment; the image does not.
4. GitOps deploy with ArgoCD
Helm · Git as the source of truth
Each application is a Helm chart, and ArgoCD syncs it from Git to the cluster. A deployment is a pull request: reviewed, approved, and recorded. There is no kubectl from someone’s laptop, and no untracked change that nobody can explain later.
5. Verify, then roll back if needed
Health checks decide
The rollout is watched: readiness probes, error rates, latency. If the new version is not healthy, traffic stays on the old one, and a rollback is a Git revert — not a rebuild under pressure. A pipeline without a practised rollback is only half a pipeline.