Mise à jour de '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

master
Leni BEAULATON 3 weeks ago
parent 1f6dfeefc4
commit 5153564054

@ -147,11 +147,16 @@ steps:
- name: update-database
image: mcr.microsoft.com/dotnet/sdk:8.0
#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 "Host=WhatTheFantasy-wtf-api-test;Database=wtf-test;Username=test;Password=test;"
- 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