新版容器命令
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 7m12s

This commit is contained in:
2025-09-29 00:54:23 +08:00
parent 77d8735283
commit 60923e61c9
2 changed files with 4 additions and 3 deletions

View File

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

View File

@@ -23,7 +23,7 @@ services:
networks:
- light-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
test: ["CMD", "curl", "-f", "https://localhost:8443/actuator/health", "--insecure"]
interval: 30s
timeout: 10s
retries: 3