Skip to content

Commit caec02c

Browse files
debug: keep cpu-32-hk pod alive 1h on failure for kubectl exec
Add a final step that sleeps 3600s only when a prior step in the build-push job fails, so the failed pod stays around long enough to kubectl exec into and inspect (cert files, buildctl output, etc.) instead of being torn down immediately. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 817ca86 commit caec02c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/_build_test_image.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,9 @@ jobs:
116116
--progress=plain
117117
118118
echo "Image built (not pushed): ${IMAGE_TAG}"
119+
120+
- name: Keep pod alive for debugging on failure
121+
if: failure()
122+
run: |
123+
echo "A previous step failed — sleeping 1h to allow 'kubectl exec' debugging into this pod."
124+
sleep 3600

0 commit comments

Comments
 (0)