From bd40699067c5aa2847c10288666aa0ee76f9ab95 Mon Sep 17 00:00:00 2001 From: "maxime.rocher" Date: Fri, 10 Jan 2025 11:35:20 +0100 Subject: [PATCH] test drone 10 --- .drone.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2d986e7..d53a850 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,6 +27,8 @@ steps: PGDATABASE: from_secret: db_database commands: - - apt-get update && apt-get install -y postgresql-client - - until pg_isready -h marocher8-dbWikiFantasy -U postgres; do sleep 1; done - - psql -h marocher8-dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql + - apt-get update && apt-get install -y postgresql-client netcat + - getent hosts dbwikifantasy + - until nc -z dbwikifantasy 5432; do echo "Waiting for port 5432..."; sleep 5; done + - until pg_isready -h dbwikifantasy -U postgres; do echo "En attente de PostgreSQL..."; sleep 5; done + - psql -h dbwikifantasy -U postgres -d wikifantasy -f script/init.sql