From ddc7bd482a3b39622a59ff0c56a09762e7b7de04 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 16:28:12 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 84d5a97..d0a3524 100644 --- a/.drone.yml +++ b/.drone.yml @@ -101,14 +101,6 @@ steps: - dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out depends_on: [restore & build, test] - - name: update-database - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - cd WF_EF_Api/StubbedContextLib - - dotnet tool install --global dotnet-ef - - dotnet ef database update --connection "Server=;Database=;User Id=;Password=;" - depends_on: [publish] - - name: deploy-api-db image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: @@ -151,6 +143,21 @@ steps: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test" ADMINS: kentinbrongniart,lenibeaulaton,kevinmondejar,louisguichard-montguers,maximerocher,tommynguyen2 + - name: update-database + image: mcr.microsoft.com/dotnet/sdk:8.0 + DB_SERVER: "WhatTheFantasy-wtf-api" + DB_NAME: + from_secret: POSTGRES_DB_AUTH + USER_ID: + from_secret: POSTGRES_USER_AUTH + PASSWORD: + from_secret: POSTGRES_PASSWORD_AUTH + commands: + - cd WF_EF_Api/StubbedContextLib + - dotnet tool install --global dotnet-ef + - dotnet-ef database update --connection "Server=;Database=;User Id=;Password=;" + depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] + - name: publish-to-registry image: plugins/docker settings: