smoke tests
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 4m17s

This commit is contained in:
2026-01-28 21:39:16 +01:00
parent a85fe64ccb
commit 3f0858a1ba
3 changed files with 59 additions and 1 deletions

View File

@@ -228,7 +228,22 @@ jobs:
docker-compose up -d
echo "⏳ Waiting for services to be healthy..."
sleep 10
MAX_RETRIES=12
RETRY_COUNT=0
until curl -s -f http://localhost:3000/health > /dev/null || [ $RETRY_COUNT -eq $MAX_RETRIES ]; do
echo " • Waiting for health check... ($((RETRY_COUNT + 1))/$MAX_RETRIES)"
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 logs:"
docker-compose logs --tail=50
exit 1
fi
echo "✅ Health check passed!"
echo "🔍 Checking service status..."
docker-compose ps