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

master
Leni BEAULATON 2 weeks ago
parent 7660456667
commit 1f6dfeefc4

@ -146,19 +146,12 @@ steps:
- name: update-database - name: update-database
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
DB_SERVER: "WhatTheFantasy-wtf-api"
DB_NAME:
from_secret: POSTGRES_DB_API
USER_ID:
from_secret: POSTGRES_USER_API
PASSWORD:
from_secret: POSTGRES_PASSWORD_API
#DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth" #DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth"
commands: commands:
- cd WF_EF_Api/StubbedContextLib - cd WF_EF_Api/StubbedContextLib
- dotnet tool install --global dotnet-ef - dotnet tool install --global dotnet-ef
- export PATH="$PATH:/root/.dotnet/tools" - export PATH="$PATH:/root/.dotnet/tools"
- dotnet ef database update --connection "Host=codefirst.iut.uca.fr;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api-test;Database=wtf-test;Username=test;Password=test;"
depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db]
- name: publish-to-registry - name: publish-to-registry

Loading…
Cancel
Save