From da3669f829a5d23987caf4c4520e3b828f912456 Mon Sep 17 00:00:00 2001 From: "maxime.rocher" Date: Fri, 10 Jan 2025 11:30:48 +0100 Subject: [PATCH] test drone 8 --- .drone.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index 79af290..aeb1e4a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,17 +17,16 @@ steps: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: from_secret: db_database -- name: init-database - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest - environment: - PGPASSWORD: - from_secret: db_password - PGUSER: - from_secret: db_user - PGDATABASE: - from_secret: db_database - commands: - - apt-get update && apt-get install -y postgresql-client - - until pg_isready -h dbWikiFantasy -U "$PGUSER"; do sleep 1; done - - psql -h dbWikiFantasy -U "$PGUSER" -d "$PGDATABASE" -f script/init.sql - + - name: init-database + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + PGPASSWORD: + from_secret: db_password + PGUSER: + from_secret: db_user + PGDATABASE: + from_secret: db_database + commands: + - apt-get update && apt-get install -y postgresql-client + - until pg_isready -h dbWikiFantasy -U postgres; do sleep 1; done + - psql -h dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql