diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 12a02d3..714158f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -218,14 +218,21 @@ jobs: echo "📋 Recent container logs:" docker logs --tail 10 ping-river-monitor-test || true - # Wait for the application to be ready - for i in {1..12}; do - if curl -f http://127.0.0.1:8080/health; then - echo "✅ Health endpoint responding" + # Wait for the application to be ready with more robust checking + echo "🔍 Testing application readiness..." + for i in {1..15}; do + echo "⏳ Attempt $i/15: Testing health endpoint..." + + # Use curl with more verbose output and longer timeout + if curl -f -s --max-time 10 --connect-timeout 5 http://127.0.0.1:8080/health; then + echo "✅ Health endpoint responding successfully!" break else - echo "⏳ Waiting for health endpoint... (attempt $i/12)" - sleep 10 + echo "❌ Health check failed, waiting 15 seconds..." + # Show what's happening with the container + echo "Container status:" + docker ps | grep ping-river-monitor-test || echo "Container not found" + sleep 15 fi done