From d26bee577c973e31367ea48ae2da7658a2f23de5 Mon Sep 17 00:00:00 2001 From: TomyS Date: Fri, 6 Nov 2026 18:50:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20frontend=E6=94=B98081=EF=BC=88?= =?UTF-8?q?=E5=AE=BF=E4=B8=BB80/8080=E8=A2=AB=E5=8D=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-test.yml b/.gitea/workflows/deploy-test.yml index d9bea88..7f38045 100644 --- a/.gitea/workflows/deploy-test.yml +++ b/.gitea/workflows/deploy-test.yml @@ -107,7 +107,7 @@ jobs: environment: CAPTCHA_UPSTREAM: "tianai-captcha:18200" ports: - - "80:80" + - "8081:80" depends_on: - server networks: [perler-net, mw] @@ -141,7 +141,7 @@ jobs: echo "===== 等待前端健康 (/healthz) =====" OK=0 for i in $(seq 1 24); do - if curl -sf http://127.0.0.1/healthz >/dev/null 2>&1; then OK=1; break; fi + if curl -sf http://127.0.0.1:8081/healthz >/dev/null 2>&1; then OK=1; break; fi sleep 5 done if [ "$OK" != "1" ]; then @@ -166,7 +166,7 @@ jobs: echo "===== 最终验证 =====" HOK=0 for i in $(seq 1 12); do - CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1/ || true) + CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8081/ || true) [ "$CODE" = "200" ] && HOK=1 && break sleep 5 done @@ -178,7 +178,7 @@ jobs: echo "===== 验证码链路检查(本地平台 TestEnv 站点) =====" COK=0 for i in $(seq 1 6); do - CCODE=$(curl -s -m 8 -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1/tac/api/challenge/generate -H "X-Site-Key: 6a062b70-c0b3-428e-8f1b-cca402e67ddd" -H "Content-Type: application/json" -d "{\"captchaType\":\"ROTATE\"}" || true) + CCODE=$(curl -s -m 8 -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:8081/tac/api/challenge/generate -H "X-Site-Key: 6a062b70-c0b3-428e-8f1b-cca402e67ddd" -H "Content-Type: application/json" -d "{\"captchaType\":\"ROTATE\"}" || true) [ "$CCODE" = "200" ] && COK=1 && break sleep 3 done