Deploy via GitOps with image digests.
IntermediateScenarioCI/CD and production rollouts
Answer
Situation read → Want auditable deployments.
What I'd do → CI builds and pushes app:$SHA, then updates the deployment repo (Kustomize images: or Helm values) to the digest via PR. Argo CD or Flux syncs. Image Updater/Flux image automation can also do it.
Why → Git history is the deployment history; rollback is a revert.
Interview tip → Separate app repo from environment repo.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedCanary a new image on a Swarm service.AdvancedDocker build is flaky in CI due to network errors on package installs.IntermediateRun database migrations in the deploy flow of containerized apps.IntermediateHow do you keep dev, CI and prod consistent?Beginner