From 69bd519fb412cb36fe431f70f88c2514ed5c9b67 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 11 Dec 2025 01:14:56 +0100 Subject: [PATCH] fix: drone job --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 91ea2af..328ba36 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,14 +50,14 @@ steps: - name: wait_for_postgres image: docker.io/library/postgres:17.6 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 exit 0 - else - true fi + i=$((i + 1)) sleep 2 done echo "Postgres did not become available, aborting."