check the loop
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user