CI/CD4 min read· 3 practice problems

GitHub Actions succeeded but rollout failed: causes and fixes (rollout status, tag, continue-on-error)

When the workflow is green but the Kubernetes rollout failed or never happened, check in order: a deploy step that does not wait, readiness probes, an unchanged image tag, the wrong context, continue-on-error and GitOps sync.

On this page
  1. Short answer: a green run only guarantees that every command exited 0
  2. Diagnosis: what is the cluster actually doing?
  3. Cause 1: a deploy step that does not wait
  4. Cause 2: readiness probe failures
  5. Causes 3 and 4: the tag did not change, or the target is wrong
  6. Cause 5: settings that hide failure
  7. What not to do
  8. The order to work in
  9. Quick diagnostic checklist

Short answer: a green run only guarantees that every command exited 0

If Actions succeeded but the rollout failed or never happened, the workflow did not wait for or check the rollout result. The cause is usually one of five:

  1. kubectl apply or helm returns before the rollout completes — new pods die, the step still passes
  2. New pods never pass their readiness probe
  3. The image tag did not change, so no new ReplicaSet is created
  4. The deploy went to the wrong context or namespace
  5. continue-on-error hides a failed step, or a GitOps sync never happened

Diagnosis: what is the cluster actually doing?

kubectl rollout status deploy/checkout -n prod --timeout=180s
Waiting for deployment "checkout" rollout to finish: 1 out of 3 new replicas have been updated...
error: deployment "checkout" exceeded its progress deadline
  • exceeded its progress deadline or timed out waiting for the condition → new pods never become Ready (cause 2)
  • successfully rolled out, but the old version is serving → check the tag and context (causes 3 and 4)
  • This command is not in the workflow log at all → cause 1

Cause 1: a deploy step that does not wait

kubectl apply exits 0 as soon as the API server accepts the manifest. Make rollout completion the gate.

kubectl apply -f k8s/ -n prod
kubectl rollout status deploy/checkout -n prod --timeout=180s
# Helm 3
helm upgrade --install checkout ./chart -n prod --wait --atomic --timeout 5m

--atomic rolls back to the previous release on failure and turns on --wait automatically. On Helm 4 the flag may have been renamed, so check helm upgrade --help.

Cause 2: readiness probe failures

kubectl get events -n prod --field-selector reason=Unhealthy

Readiness probe failed: HTTP probe failed with statuscode: 404 means the probe path or port no longer matches the new version. For slow-starting apps, give them room with a startupProbe.

Causes 3 and 4: the tag did not change, or the target is wrong

If apply prints deployment.apps/checkout unchanged, nothing changed as far as the cluster is concerned. Instead of :latest, tag every build with the commit SHA (${{ github.sha }}). Before deploying, print kubectl config current-context into the log and pin the namespace with -n.

Cause 5: settings that hide failure

- name: Wait for rollout
  id: rollout
  run: kubectl rollout status deploy/checkout -n prod --timeout=180s
  continue-on-error: true    # with this line the job passes even if the step fails

When a step with continue-on-error: true fails, steps.rollout.outcome is failure but its conclusion is success, so the job ends green. Remove it from deploy steps; a trailing || true on a command does the same thing. With GitOps such as Argo CD, CI only pushes the image, so run argocd app get checkout to see whether Sync Status is OutOfSync and confirm the tag in the manifest repository actually changed.

What not to do

  • Raising the timeout until it turns green — if the probe is the cause, waiting longer never makes pods Ready.
  • Re-pushing the same tag and papering over it with rollout restart — you lose track of what is actually deployed.

The order to work in

  1. Add rollout status --timeout after the deploy step (--wait --atomic for Helm)
  2. On a timeout or progress deadline, look for probe failures in events
  3. On unchanged or an old version, check the tag, context and namespace
  4. Search the workflow for continue-on-error and || true and remove them from deploy steps

To practise the probe side of this as a problem, try Rolling update never finishes: the new pod is Running but READY 0/1.

Quick diagnostic checklist

  • Confirm the workflow log actually contains kubectl rollout status or helm --wait.
  • Add kubectl rollout status deploy/<name> --timeout=180s after the deploy step.
  • With Helm 3, use --wait --atomic --timeout so a failed upgrade rolls back.
  • On exceeded its progress deadline, look for probe failures in reason=Unhealthy events.
  • If apply prints unchanged, check that the image tag changes with every commit.
  • Print kubectl config current-context before deploying and pin the namespace with -n.
  • Find and remove continue-on-error: true and trailing || true in deploy steps.
  • With GitOps, check Sync Status in argocd app get and the tag in the manifest repository.

Practice with this guide

Reviewed problems about the same failure. Write the cause, recovery, and prevention yourself, then compare with the model answer.

Read next