ci: run smoke test via SSH from host for reliable DNS
CI/CD / deploy (push) Failing after 8m41s
Details
CI/CD / deploy (push) Failing after 8m41s
Details
Runner container can't always resolve Cloudflare-tunneled domains. Run curl from host via SSH instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6be2b0c0e0
commit
156a5324a2
|
|
@ -52,7 +52,8 @@ jobs:
|
|||
- name: Smoke test
|
||||
run: |
|
||||
sleep 15
|
||||
HTTP_CODE=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 30 https://p2pwiki.jeffemmett.com/ 2>/dev/null || echo "000")
|
||||
HTTP_CODE=$(ssh -o StrictHostKeyChecking=no -i ~/.ssh/deploy_key root@${{ secrets.DEPLOY_HOST }} \
|
||||
"curl -sSL -o /dev/null -w '%{http_code}' --max-time 30 https://p2pwiki.jeffemmett.com/ 2>/dev/null || echo 000")
|
||||
if [ "$HTTP_CODE" -lt 200 ] || [ "$HTTP_CODE" -ge 400 ]; then
|
||||
echo "Smoke test failed (HTTP $HTTP_CODE) — rolling back"
|
||||
ROLLBACK_TAG=$(ssh -o StrictHostKeyChecking=no -i ~/.ssh/deploy_key root@${{ secrets.DEPLOY_HOST }} "cat /opt/apps/p2pwiki-content/.rollback-tag 2>/dev/null")
|
||||
|
|
|
|||
Loading…
Reference in New Issue