fix(ci): replace non-existent /api/health/cms with homepage health check
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 4m51s
Build & Deploy / 🏗️ Build (push) Successful in 15m6s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 3m48s
Build & Deploy / 🔔 Notify (push) Successful in 12s

This commit is contained in:
2026-03-02 12:54:07 +01:00
parent 6b51d63c8b
commit 3e04427646

View File

@@ -425,24 +425,22 @@ jobs:
- name: Install dependencies
run: |
pnpm install --no-frozen-lockfile
- name: 🏥 CMS Deep Health Check
- name: 🏥 App Health Check
env:
DEPLOY_URL: ${{ needs.prepare.outputs.next_public_url }}
run: |
echo "Waiting for app to start at $DEPLOY_URL ..."
for i in {1..20}; do
HTTP_CODE=$(curl -sk -o /tmp/health.json -w '%{http_code}' "$DEPLOY_URL/api/health/cms" 2>&1) || true
for i in {1..30}; do
HTTP_CODE=$(curl -sk -o /dev/null -w '%{http_code}' "$DEPLOY_URL" 2>&1) || true
echo "Attempt $i: HTTP $HTTP_CODE"
if [ "$HTTP_CODE" = "200" ]; then
echo "✅ CMS health OK"
cat /tmp/health.json
if [[ "$HTTP_CODE" =~ ^2 ]]; then
echo "✅ App is up (HTTP $HTTP_CODE)"
exit 0
fi
echo "⏳ Waiting... (got $HTTP_CODE)"
sleep 5
sleep 10
done
echo "❌ CMS health check failed after 20 attempts"
cat /tmp/health.json 2>/dev/null || true
echo "❌ App health check failed after 30 attempts"
exit 1
- name: 🚀 OG Image Check
env: