Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing Details

master
Leni BEAULATON 2 weeks ago
parent d0765e9194
commit ddc7bd482a

@ -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=<DB_SERVER>;Database=<DB_NAME>;User Id=<USER_ID>;Password=<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=<DB_SERVER>;Database=<DB_NAME>;User Id=<USER_ID>;Password=<PASSWORD>;"
depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db]
- name: publish-to-registry
image: plugins/docker
settings:

Loading…
Cancel
Save