Created
August 21, 2017 07:13
-
-
Save batmany13/c4df1a600202ba89ad17385bce6a1934 to your computer and use it in GitHub Desktop.
Wait for Postgres
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
- run: | |
name: Waiting for Postgres to be ready | |
command: | | |
for i in `seq 1 10`; | |
do | |
psql -h localhost -U $PG_USER $PG_DB -c "\t" && echo DB Up && exit 0 | |
echo -n . | |
sleep 1 | |
done | |
echo Failed waiting for Postgres && exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment