Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

How do you build a safe automated rollback in a Git-driven deployment?

AdvancedProductionGitHub Actions, environments and releases in production
Answer

Gate every rollout on health signals (SLO burn, error rate, latency) via progressive delivery. On failure the controller reverts traffic, and a bot opens a revert PR for the offending commit so Git matches reality. The key rule is that Git and the cluster must never silently diverge for long.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production