Skip to content

CICD-494 · Emergency deployment procedures ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-493 · Next · CICD-495

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters CANDIDATE_DIGEST, INCIDENT_ID.

2. Copy the snippet ​

bash
[[ "${INCIDENT_ID:?}" =~ ^INC-[0-9]+$ ]]
[[ "${CANDIDATE_DIGEST:?}" =~ ^sha256:[0-9a-f]{64}$ ]]
jq -n --arg id "$INCIDENT_ID" --arg digest "$CANDIDATE_DIGEST" '{incident:$id,digest:$digest}' > emergency-change.json

3. How it works ​

The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.

4. Verify the result ​

Require the emergency approver and approved execution environment. Record health checks, rollback and follow-up linkage.

Validation syntax-validated (Bash parse). Status definitions.