CI 验证步骤改为就绪等待+重试(小内存 runner 容器启动慢于 3s)
Deploy Resume / deploy (push) Failing after 1m46s

This commit is contained in:
2026-11-03 13:25:15 +08:00
parent 719bca6ab2
commit 012c5d7e5b
+6 -1
View File
@@ -39,7 +39,12 @@ jobs:
- name: Verify Deployment (页面 + PDF)
run: |
sleep 3
# 等待容器就绪(最多 30s)
for i in $(seq 1 10); do
curl -fsS http://127.0.0.1:8080/ > /dev/null 2>&1 && break
echo "waiting for container... ($i)"
sleep 3
done
curl -fsS http://127.0.0.1:8080/ > /dev/null
for f in private-dev private-support soe-dev soe-support; do
ct=$(curl -fsS -o /dev/null -w '%{content_type}' http://127.0.0.1:8080/pdf/$f.pdf)