初始化项目
Some checks failed
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Failing after 13s

This commit is contained in:
Lee 2026-06-08 17:01:16 +08:00
parent a964b9d1ff
commit 2f35415bb9

View File

@ -57,9 +57,8 @@ jobs:
# 循环探活:每隔 5 秒检测一次,最多尝试 15 次(总计 75 秒,给高版本 JVM 充足的预热时间)
for i in {1..15}; do
# 发送轻量级请求只要服务响应了无论是200还是Spring默认的404/无路由),都证明 Tomcat/Netty 已拉起
if docker exec ${CONTAINER_NAME} wget -q --spider http://localhost:8080/hello; then
if docker exec ${CONTAINER_NAME} jcmd 1 VM.version > /dev/null 2>&1; then
echo "✅ [SUCCESS] 探活成功Java 26 服务已成功拉起。"
echo "🧹 开始安全地清理历史无用镜像及过期构建缓存..."
docker image prune -f
docker builder prune --filter "until=24h" -f