|
|
@ -147,11 +147,16 @@ steps:
|
|
|
|
- name: update-database
|
|
|
|
- name: update-database
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
#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:
|
|
|
|
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=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]
|
|
|
|
depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db]
|
|
|
|
|
|
|
|
|
|
|
|
- name: publish-to-registry
|
|
|
|
- name: publish-to-registry
|
|
|
|