Skip to content

Commit 6fc86b4

Browse files
committed
CICD Test
1 parent 6b76ded commit 6fc86b4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,16 @@ jobs:
4747
4848
- name: Test Frontend Is Live
4949
run: |
50-
curl --fail --silent --show-error https://forever.aimablem.dev || exit 1
51-
50+
for i in {1..10}; do
51+
echo "Checking backend (try $i)..."
52+
if curl --fail --silent --show-error https://forever.aimablem.dev; then
53+
echo "Frontend is up!"
54+
exit 0
55+
fi
56+
sleep 5
57+
done
58+
echo "Frontend failed to respond after 10 attempts."
59+
exit 1
5260
- name: Test Backend Is Live
5361
run: |
5462
for i in {1..10}; do

0 commit comments

Comments
 (0)