ci: 健康检查与入口端口改为 8888(按端口登记册规范:平台 Web 入口 88xx 段,80 释放)
deploy-hxtesting / build-and-deploy (push) Successful in 1m51s
deploy-hxtesting / build-and-deploy (push) Successful in 1m51s
This commit is contained in:
1 parent
035edaf3fe
commit
a29ed6ff24
1 file changed
+2
-2
@@ -52,8 +52,8 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
sleep 20
|
||||
if curl -fsS -o /dev/null --max-time 10 http://127.0.0.1/; then
|
||||
echo "WEB_OK: http://hxtesting/ 已可访问 (sha-${GIT_SHA})"
|
||||
if curl -fsS -o /dev/null --max-time 10 http://127.0.0.1:8888/; then
|
||||
echo "WEB_OK: http://hxtesting:8888/ 已可访问 (sha-${GIT_SHA})"
|
||||
else
|
||||
echo "健康检查失败,容器状态:"
|
||||
cd "$DEPLOY_DIR" && docker compose ps
|
||||
|
||||
Reference in new issue
Block a user