ci: 测试环境端口回归 80(域名 test.beads.520mxp.cn 直连,健康检查同步改端口)
This commit is contained in:
1 parent
b7e94d8a91
commit
c728b38492
1 file changed
+4
-4
@@ -91,7 +91,7 @@ jobs:
|
|||||||
container_name: perler-lab-frontend
|
container_name: perler-lab-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- server
|
- server
|
||||||
networks: [perler-net]
|
networks: [perler-net]
|
||||||
@@ -116,7 +116,7 @@ jobs:
|
|||||||
echo "===== 等待前端健康 (/healthz) ====="
|
echo "===== 等待前端健康 (/healthz) ====="
|
||||||
OK=0
|
OK=0
|
||||||
for i in $(seq 1 24); do
|
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
|
sleep 5
|
||||||
done
|
done
|
||||||
if [ "$OK" != "1" ]; then
|
if [ "$OK" != "1" ]; then
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
echo "===== 最终验证 ====="
|
echo "===== 最终验证 ====="
|
||||||
HOK=0
|
HOK=0
|
||||||
for i in $(seq 1 12); do
|
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
|
[ "$CODE" = "200" ] && HOK=1 && break
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
@@ -155,4 +155,4 @@ jobs:
|
|||||||
- name: Deployment summary
|
- name: Deployment summary
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo "测试环境访问: http://156.233.226.86:8080"
|
echo "测试环境访问: http://test.beads.520mxp.cn"
|
||||||
Reference in new issue
Block a user