Use it when configuring, checking or troubleshooting Rollback in CI/CD.
Rollback · CI/CD
CI/CD Rollback is a controlled recovery path that restores a previously acceptable release or configuration when a deployment fails its defined acceptance criteria.
1. Rollback redeploys the previous known-good artefact.
2. Automate it.
3. Database migrations need backward compatibility (expand/contract).
4. Test rollback.
5. Trigger on failed health checks.
failed deploy → rollback pipeline → previous version
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
Healthy evidence: Rollback trigger, previous artifact/config identity, compatibility assumptions, execution result and original service acceptance tests are verified.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: The pipeline redeploys an old binary but irreversible database or external changes remain, while the rollback job alone is marked successful.
Step 3 Common mistakes Narrow the fault
- No way to redeploy the previous version quickly.
Step 4 Where it fails Narrow the fault
Where Rollback usually goes wrong: known previous state, reversibility, partial rollback, dependency ordering and verification after recovery.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Rollback executed ≠ service restored; backward compatibility, data/schema changes, external side effects and partial rollout can prevent true recovery.
- Pipeline status is execution evidence, not independent proof of target service health or business outcome.
- The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
- Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.
- Previous artefact version available — rollback target
- Rollback job/pipeline — automation
- Rollback test — proof
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Rollback executed ≠ service restored; backward compatibility, data/schema changes, external side effects and partial rollout can prevent true recovery.
In depth
Rollback in CI/CD restores the previous working version when a deployment fails or causes problems. The fastest rollbacks redeploy a known-good artifact through the same pipeline, rather than improvising manual fixes.
| Strategy | How |
|---|---|
| Redeploy previous release | Run pipeline with last good tag/artifact |
| Git revert | Revert commit; pipeline deploys the result |
| Platform rollback | kubectl rollout undo, helm rollback |
| Blue/green, canary | Switch traffic back to old version |
| Config replace | Device restores archived configuration |
Rollback must be tested and fast; define in advance which signals trigger it (failed smoke tests, error rate) and whether it is automatic. Database or data-format changes need backward-compatible designs, since data rarely rolls back with code.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CI/CD > Rollback. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Rollback CI/CD proof-boundary map
Fast trigger/execution/artifact/promotion/target-proof boundaries for Rollback.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Rollback, rely on structured fields and stable IDs (known previous state, reversibility, partial rollback, dependency ordering and verification after recovery) rather than text formatted for display.