更新CI/CD部署配置:修正健康检查方式和端口映射
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 17m1s

This commit is contained in:
2025-10-14 20:32:37 +08:00
parent 388199279a
commit 2017507dec

View File

@@ -118,11 +118,11 @@ jobs:
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
# 使用正确的端口 (8443) 和协议 (HTTPS)不跳过SSL验证
if curl -f -s https://localhost:8443/actuator/health > /dev/null 2>&1; then
if curl -f -s https://www.doubleyin.cn:8443/actuator/health > /dev/null 2>&1; then
echo "✅ 应用健康检查通过"
# 获取详细的健康信息
HEALTH_INFO=$(curl -s https://localhost:8443/actuator/health)
HEALTH_INFO=$(curl -s https://www.doubleyin.cn:8443/actuator/health)
echo "健康状态: $HEALTH_INFO"
break
fi