From ba5224c832512865b853d5ef14d93bc51a06d9ba Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 1 Apr 2026 14:13:18 -0700 Subject: [PATCH] fix(ci): use SSH-based smoke test for reliable DNS resolution Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2b7f0dd..7e33488 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -53,7 +53,8 @@ jobs: - name: Smoke test run: | sleep 15 - HTTP_CODE=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 30 https://rfunds.online/ 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://rfunds.online/ 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/websites/rfunds-online/.rollback-tag 2>/dev/null")