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