Last active
October 12, 2022 13:22
-
-
Save TomerAdmon/d8b23b7c0d67b396c4a352a2e0981612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo URL Provided: ${FRONTEND_URL} | |
if [[ -z "${FRONTEND_URL}" ]]; then | |
printf 'No frontend value provided' | |
elif [[ "${FRONTEND_URL}" == *"localhost"* ]]; then | |
printf 'Using localhost' | |
else | |
frontend="${FRONTEND_URL}" | |
printf 'Waiting for ALB to be ready' | |
until $(curl --output /dev/null --silent --head --fail $frontend); do | |
printf '.' | |
sleep 5 | |
done | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment