From 6dd09a2142e984de77527be62961d16916fa536f Mon Sep 17 00:00:00 2001 From: Rocher Date: Wed, 6 Nov 2024 18:30:35 +0100 Subject: [PATCH] test drone 6 --- .drone.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index c866780..56a9349 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,20 +3,22 @@ type: docker name: deploy-postgresql steps: - # container deployment + # container deployment - name: deploy-container-pgsql image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest settings: - IMAGENAME: mariadb:10 - CONTAINERNAME: WF-DATABASE - COMMAND: create - # OVERWRITE: false - CODEFIRST_CLIENTDRONE_ENV_PGSQL_ROOT_PASSWORD: - from_secret: db_server - CODEFIRST_CLIENTDRONE_ENV_PGSQL_USER: - from_secret: db_user - CODEFIRST_CLIENTDRONE_ENV_PGSQL_PASSWORD: - from_secret: db_password - CODEFIRST_CLIENTDRONE_ENV_PGSQL_DATABASE: - from_secret: db_database - + IMAGENAME: postgres:latest + CONTAINERNAME: WF-DATABASE + commands: + - create + - sleep 10 + - psql -h https://codefirst.iut.uca.fr/containers/ -U adminfantasy -d wikifantasyDB -f /docker-entrypoint-initdb.d/init.sql + # OVERWRITE: false + CODEFIRST_CLIENTDRONE_ENV_PGSQL_ROOT_PASSWORD: + from_secret: db_server + CODEFIRST_CLIENTDRONE_ENV_PGSQL_USER: + from_secret: db_user + CODEFIRST_CLIENTDRONE_ENV_PGSQL_PASSWORD: + from_secret: db_password + CODEFIRST_CLIENTDRONE_ENV_PGSQL_DATABASE: + from_secret: db_database