ci: 测试环境端口回归 80(域名 test.beads.520mxp.cn 直连,健康检查同步改端口)

This commit is contained in:
Sisyphus committed 2026-08-25 11:42:33 +08:00
1 parent b7e94d8a91
commit c728b38492
1 file changed
+4 -4
+4 -4
View File
@@ -91,7 +91,7 @@ jobs:
container_name: perler-lab-frontend
restart: unless-stopped
ports:
- "8080:80"
- "80:80"
depends_on:
- server
networks: [perler-net]
@@ -116,7 +116,7 @@ jobs:
echo "===== 等待前端健康 (/healthz) ====="
OK=0
for i in $(seq 1 24); do
if curl -sf http://127.0.0.1:8080/healthz >/dev/null 2>&1; then OK=1; break; fi
if curl -sf http://127.0.0.1/healthz >/dev/null 2>&1; then OK=1; break; fi
sleep 5
done
if [ "$OK" != "1" ]; then
@@ -141,7 +141,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:8080/ || true)
CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1/ || true)
[ "$CODE" = "200" ] && HOK=1 && break
sleep 5
done
@@ -155,4 +155,4 @@ jobs:
- name: Deployment summary
if: always()
run: |
echo "测试环境访问: http://156.233.226.86:8080"
echo "测试环境访问: http://test.beads.520mxp.cn"