fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job #41
@@ -82,10 +82,11 @@ jobs:
|
|||||||
- name: Wait for CI site to be healthy
|
- name: Wait for CI site to be healthy
|
||||||
run: |
|
run: |
|
||||||
for i in {1..30}; do
|
for i in {1..30}; do
|
||||||
if docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>/dev/null | grep -q healthy; then
|
if result=$(docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>&1); then
|
||||||
echo "CI site is healthy"
|
echo "CI site is healthy: $result"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
echo "Attempt $i: $result"
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
echo "CI site failed to become healthy after 60 seconds"
|
echo "CI site failed to become healthy after 60 seconds"
|
||||||
|
|||||||
Reference in New Issue
Block a user