From 42b02222c3245cd6fc32b634b40f766347497d90 Mon Sep 17 00:00:00 2001 From: "maxime.rocher" Date: Fri, 10 Jan 2025 11:26:46 +0100 Subject: [PATCH] test drone 5 --- .drone.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c133e4c..3759bcf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,7 @@ steps: image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: postgres:13 - CONTAINERNAME: mypostgres + CONTAINERNAME: dbWikiFantasy COMMAND: create PRIVATE: true CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: @@ -18,7 +18,7 @@ steps: from_secret: db_database - name: init-database - image: postgres:13 + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: PGPASSWORD: from_secret: db_password @@ -27,5 +27,9 @@ steps: PGDATABASE: from_secret: db_database commands: - - until pg_isready -h mypostgres -U postgres; do sleep 1; done - - psql -h mypostgres -U postgres -d wikifantasy -f scripts/init.sql + # Installer le client PostgreSQL + - apk update && apk add postgresql-client + # Attendre que PostgreSQL soit prĂȘt + - until pg_isready -h dbWikiFantasy -U postgres; do sleep 1; done + # ExĂ©cuter le script d'initialisation + - psql -h dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql