How do you promote a release from staging to production in GitOps?
IntermediateConceptRepo Structure, Flux, Scaling & DR
Answer
Copy the exact, already-tested artifact reference (image tag or digest, chart version) from the staging folder to the prod folder in a pull request, reviewed by the right owners (CODEOWNERS), and merged when the change window allows. Automate PR creation with a script, a workflow, Image Updater for lower environments, or Kargo for stage-based promotion. Never rebuild for prod; promote the same artifact.
More on Repo Structure, Flux, Scaling & DR
Why separate the application source repo from the config (GitOps) repo?BeginnerFolders per environment or branches per environment?IntermediateWhat does a typical multi-team config repo layout look like?IntermediateHow does Flux differ from Argo CD architecturally?IntermediateWhen would you pick Flux over Argo CD, and vice versa?IntermediateHow do you bootstrap Flux on a cluster?Intermediate