From 012c5d7e5b80ab3319ab5466c33338e1b35e06b0 Mon Sep 17 00:00:00 2001 From: wonder Date: Tue, 3 Nov 2026 13:25:15 +0800 Subject: [PATCH] =?UTF-8?q?CI=20=E9=AA=8C=E8=AF=81=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=B0=B1=E7=BB=AA=E7=AD=89=E5=BE=85+?= =?UTF-8?q?=E9=87=8D=E8=AF=95=EF=BC=88=E5=B0=8F=E5=86=85=E5=AD=98=20runner?= =?UTF-8?q?=20=E5=AE=B9=E5=99=A8=E5=90=AF=E5=8A=A8=E6=85=A2=E4=BA=8E=203s?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c4805e1..a7c6c90 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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)