diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index aac76c2..3571b3e 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -85,6 +85,10 @@ jobs: [ "$code" = "200" ] || { echo "❌ strategy/list HTTP $code"; exit 1; } [ -s /tmp/sl.json ] || { echo "❌ strategy/list 空响应"; exit 1; } echo "✅ strategy/list 200 非空, 后端路由通" + # /health 存活探针(Docker HEALTHCHECK 依赖;漏部署→容器恒unhealthy,本次回归即此) + code=$(curl -s -o /dev/null -w "%{http_code}" $BASE/health) + [ "$code" = "200" ] || { echo "❌ /health HTTP $code (容器会unhealthy)"; exit 1; } + echo "✅ /health 200, 存活探针通" - name: NAS 副本数据可读(dbbardata) run: | ssh sanguo-nas "python3 -c 'import sqlite3