check the loop

This commit is contained in:
Ryan W
2023-09-30 12:48:27 -07:00
parent 826ba89374
commit 7a7ed3532e
+1 -2
View File
@@ -53,11 +53,10 @@ jobs:
if [ "$status" = "healthy" ]; then if [ "$status" = "healthy" ]; then
echo "Container is healthy" echo "Container is healthy"
exit 0 exit 0
else elif [ "$status" = "unhealthy" ]; then
echo "Container is unhealthy" echo "Container is unhealthy"
exit 1 exit 1
fi fi
echo "sleep for recheck"
sleep 1 sleep 1
done done
echo "Timed out waiting for container to become healthy" echo "Timed out waiting for container to become healthy"