Compare commits
1 commit
639a478c81
...
0a16263a96
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a16263a96 |
1 changed files with 5 additions and 1 deletions
|
|
@ -36,7 +36,11 @@ steps:
|
||||||
# Wait for postgres to become available
|
# Wait for postgres to become available
|
||||||
- |
|
- |
|
||||||
for i in {1..20}; do
|
for i in {1..20}; do
|
||||||
pg_isready -h postgres && break
|
if pg_isready -h postgres; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
echo "Postgres did not become available, aborting"
|
echo "Postgres did not become available, aborting"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue