From d0765e9194e73ca3b06c3fb2149a098759538e5f Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 16:21:08 +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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8c7fd79..84d5a97 100644 --- a/.drone.yml +++ b/.drone.yml @@ -99,10 +99,15 @@ steps: image: mcr.microsoft.com/dotnet/sdk:8.0 commands: - 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 - depends_on: [restore & build, test] + - 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