Update update_db job to specify dotnet-ef version and adjust PATH for database migrations #5
This commit is contained in:
@@ -56,8 +56,9 @@ update_db:
|
|||||||
- cd Api
|
- cd Api
|
||||||
- dotnet restore ./Api.csproj
|
- dotnet restore ./Api.csproj
|
||||||
- dotnet build ./Api.csproj
|
- dotnet build ./Api.csproj
|
||||||
- dotnet tool install --global dotnet-ef
|
- dotnet tool install --global dotnet-ef --version 8.*
|
||||||
- dotnet ef database update --project ./Api.csproj --startup-project ./Api.csproj
|
- export PATH="$PATH:/root/.dotnet/tools"
|
||||||
|
- dotnet-ef database update --project ./Api.csproj --startup-project ./Api.csproj
|
||||||
tags:
|
tags:
|
||||||
- production
|
- production
|
||||||
- docker
|
- docker
|
||||||
|
|||||||
Reference in New Issue
Block a user