Interview Prep/GitHub Actions/Runners, ARC, Monorepos & Releases

You have to roll back prod quickly. How should your workflows support that?

BeginnerScenarioRunners, ARC, Monorepos & Releases
Answer

Situation read → Rollback must be a known, rehearsed path.

What I'd do →

  1. workflow_dispatch "Rollback" taking a previous version or digest, calling the same reusable deploy workflow (same approvals, possibly a faster emergency environment).
  2. In-job automatic rollback on failed rollout: kubectl rollout undo if rollout status fails.
  3. Keep previous images (ECR lifecycle policy retains enough releases).

Why → Rollback is just a deploy of an older digest when you build once and promote.

Interview tip → Rehearse it; a rollback path never tested is not a rollback path.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, ARC, Monorepos & Releases