|
|
@ -99,10 +99,15 @@ steps:
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out
|
|
|
|
- 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
|
|
|
|
- cd WF_EF_Api/StubbedContextLib
|
|
|
|
- dotnet tool install --global dotnet-ef
|
|
|
|
- dotnet tool install --global dotnet-ef
|
|
|
|
- dotnet ef database update
|
|
|
|
- dotnet ef database update --connection "Server=<DB_SERVER>;Database=<DB_NAME>;User Id=<USER_ID>;Password=<PASSWORD>;"
|
|
|
|
depends_on: [restore & build, test]
|
|
|
|
depends_on: [publish]
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-api-db
|
|
|
|
- name: deploy-api-db
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|