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