Merge branch 'master' of https://codefirst.iut.uca.fr/git/WhatTheFantasy/WF-PmAPI
continuous-integration/drone/push Build is passing Details

master
Leni BEAULATON 2 weeks ago
commit eb950fe801

@ -143,21 +143,20 @@ 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
DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth"
#DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth"
environment:
HOST: "WhatTheFantasy-wtf-api-test"
PASSWORD: "test"
USER: "test"
DB: "wtf-test"
commands:
- cd WF_EF_Api/StubbedContextLib
- dotnet tool install --global dotnet-ef
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet ef database update --connection "Data Source=DB_PATH_AUTH;"
- dotnet ef database update --connection "Host=$${HOST};Database=$${DB};Username=$${USER};Password=$${PASSWORD};"
depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db]
- name: publish-to-registry

Loading…
Cancel
Save