fix: deploy
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 8s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m26s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 2m30s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 44s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Failing after 5m54s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 8s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m26s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 2m30s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 44s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Failing after 5m54s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s
This commit is contained in:
@@ -454,6 +454,31 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: 🏥 Health Check (Wait for 200 OK)
|
||||
env:
|
||||
URL: ${{ needs.prepare.outputs.next_public_base_url }}
|
||||
run: |
|
||||
echo "Waiting for $URL to be ready..."
|
||||
timeout=300
|
||||
interval=5
|
||||
elapsed=0
|
||||
|
||||
while [ $elapsed -lt $timeout ]; do
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
|
||||
echo "Attempt $((elapsed/interval+1)): Status $STATUS"
|
||||
|
||||
if [ "$STATUS" = "200" ]; then
|
||||
echo "✅ Site is healthy!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sleep $interval
|
||||
elapsed=$((elapsed + interval))
|
||||
done
|
||||
|
||||
echo "❌ Timeout waiting for site to be healthy."
|
||||
exit 1
|
||||
|
||||
- name: 🔍 Install Chromium (Native & ARM64)
|
||||
run: |
|
||||
apt-get update
|
||||
|
||||
Reference in New Issue
Block a user