From 8d63bc0bd3cbed08ac7baefa23dc01bc1ba7793f Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Mon, 1 Apr 2024 18:48:09 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20variables=20ENV=20pour=20identification?= =?UTF-8?q?=20DB=20(celles=20pr=C3=A9sentes=20dans=20le=20code=20=C3=A9tan?= =?UTF-8?q?t=20pour=20le=20dev=20local)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index cf7f902..5a792ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,13 +53,22 @@ steps: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD + environment: + SPRING_DATASOURCE_URL: jdbc:postgresql://tombiard-postgres_server:5432/ScienceQuest + SPRING_DATASOURCE_USERNAME: ScienceQuest + SPRING_DATASOURCE_PASSWORD: + from_secret: postgres_password_secret - name: deploy-container-app image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest depends_on: [build-container-app-image,deploy-container-postgresql] environment: - IMAGENAME: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/api:latest - CONTAINERNAME: api - COMMAND: create - OVERWRITE: true - ADMINS: alixjeudi--lemoine,victorsoulier,gwenaelplanchon + IMAGENAME: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/api:latest + CONTAINERNAME: api + COMMAND: create + OVERWRITE: true + CODEFIRST_CLIENTDRONE_ENV_SPRING_DATASOURCE_URL: jdbc:postgresql://tombiard-postgres_server:5432/ScienceQuest + CODEFIRST_CLIENTDRONE_ENV_SPRING_DATASOURCE_USERNAME: ScienceQuest + CODEFIRST_CLIENTDRONE_ENV_SPRING_DATASOURCE_PASSWORD: + from_secret: postgres_password_secret + ADMINS: alixjeudi--lemoine,victorsoulier,gwenaelplanchon