fix(ci): 在 runner 中安裝 curl 解決 health check HTTP 000 問題
All checks were successful
E2E Health Check / e2e-health (push) Successful in 17s
All checks were successful
E2E Health Check / e2e-health (push) Successful in 17s
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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 健康狀態..."
|
||||
|
||||
Reference in New Issue
Block a user