CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

fix(ci): verify-deploy uses wget — the runner container has no curl #5467

Merged⚡ AI-generatedXSccantynz wants to mergefix/verify-deploy-wgetmainopened 24d ago
1 changed file+5−1
Modified.gluecron/workflows/deploy.yml+5−1View fileUnifiedSplit
2525 run: |
2626 SHA=$(git rev-parse HEAD)
2727 echo "verifying deploy of $SHA"
28 # wget, not curl: the runner executes inside the app container,
29 # which ships wget only (same binary its own healthchecks use).
30 # Run #256 proved this the honest way — 36 polls, every one
31 # "curl: command not found" on stderr.
2832 for i in $(seq 1 36); do
29 LIVE=$(curl -fsS --max-time 10 https://gluecron.com/api/version | sed -n 's/.*"shaFull":"\([a-f0-9]*\)".*/\1/p' || true)
33 LIVE=$(wget -qO- --timeout=10 https://gluecron.com/api/version 2>/dev/null | sed -n 's/.*"shaFull":"\([a-f0-9]*\)".*/\1/p' || true)
3034 if [ "$LIVE" = "$SHA" ]; then
3135 echo "deploy verified: production serves $SHA (after ~$((i * 10))s)"
3236 exit 0
3337
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts