WIP: speed-up drone #272

Draft
simon wants to merge 4 commits from speed-up-drone into main
Showing only changes of commit 69bd519fb4 - Show all commits

View file

@ -50,14 +50,14 @@ steps:
- name: wait_for_postgres - name: wait_for_postgres
image: docker.io/library/postgres:17.6 image: docker.io/library/postgres:17.6
commands: commands:
# Wait for postgres to become available # Wait for postgres to become available (POSIX-compatible)
- | - |
for i in {1..20}; do i=0
while [ $i -lt 20 ]; do
if pg_isready -h postgres -U postgres; then if pg_isready -h postgres -U postgres; then
exit 0 exit 0
else
true
fi fi
i=$((i + 1))
sleep 2 sleep 2
done done
echo "Postgres did not become available, aborting." echo "Postgres did not become available, aborting."