deploy
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 5m48s

This commit is contained in:
2026-01-29 11:33:30 +01:00
parent 4e50482769
commit 7f2f6f5aca
3 changed files with 12 additions and 4 deletions

View File

@@ -224,16 +224,21 @@ jobs:
echo "⏳ Waiting for services to be healthy..."
MAX_RETRIES=12
RETRY_COUNT=0
until curl -s -f http://localhost:3000/health > /dev/null || [ \$RETRY_COUNT -eq \$MAX_RETRIES ]; do
until curl -s -f http://127.0.0.1:3000/health > /dev/null || [ \$RETRY_COUNT -eq \$MAX_RETRIES ]; do
echo " • Waiting for health check... (\$((RETRY_COUNT + 1))/\$MAX_RETRIES)"
# Log the output of curl for debugging if it fails
curl -v http://127.0.0.1:3000/health 2>&1 | grep -E "< HTTP/|* Connection" || true
sleep 5
RETRY_COUNT=\$((RETRY_COUNT + 1))
done
if [ \$RETRY_COUNT -eq \$MAX_RETRIES ]; then
echo "❌ Health check failed after \$MAX_RETRIES retries"
echo "🔍 Container status:"
docker-compose ps
echo ""
echo "🔍 Container logs:"
docker-compose logs --tail=50
docker-compose logs --tail=100
exit 1
fi