From c96923f51898925e2b0263a595041f10f824920a Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 29 Mar 2026 22:36:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E5=9C=A8=20runner=20=E4=B8=AD?= =?UTF-8?q?=E5=AE=89=E8=A3=9D=20curl=20=E8=A7=A3=E6=B1=BA=20health=20check?= =?UTF-8?q?=20HTTP=20000=20=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cd.yaml | 1 + .gitea/workflows/e2e-health.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 5e1388e7..f1331806 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -90,6 +90,7 @@ jobs: # ── Health Check ───────────────────────────────────────────────────── - name: Health Check run: | + sudo apt-get update && sudo apt-get install -y curl || (apt-get update && apt-get install -y curl) sleep 10 for i in 1 2 3; do HTTP_CODE=$(curl -s -w "%{http_code}" -o /dev/null --connect-timeout 10 "http://192.168.0.121:32334/api/v1/health") diff --git a/.gitea/workflows/e2e-health.yaml b/.gitea/workflows/e2e-health.yaml index 2c42fe33..fdbacac8 100644 --- a/.gitea/workflows/e2e-health.yaml +++ b/.gitea/workflows/e2e-health.yaml @@ -19,6 +19,7 @@ jobs: - name: Check API Health run: | + sudo apt-get update && sudo apt-get install -y curl || (apt-get update && apt-get install -y curl) # 使用 host.docker.internal 或直接 IP API_URL="http://192.168.0.121:32334" echo "🔗 檢查 API 健康狀態..."