Interview Prep/GitOps & Argo CD/CI Integration & Progressive Delivery

Design a CI pipeline that deploys through GitOps without giving CI cluster access.

BeginnerScenarioCI Integration & Progressive Delivery
Answer

Situation read → CI builds, Git deploys.

What I'd do →

  1. Test, build, scan and push image:sha-<short> to the registry.
  2. Check out the config repo with a token scoped to that repo only.
  3. yq -i '.image.tag = strenv(TAG)' envs/dev/values.yaml, commit, push with retry on conflicts.
  4. Argo CD auto-syncs dev; staging and prod are promoted by PR.

Why → CI's only privileged action is writing one file in Git, which is reviewed and audited.

Interview tip → Mention retry with git pull --rebase for concurrent pipeline runs.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on CI Integration & Progressive Delivery