Update update_db job to specify dotnet-ef version and adjust PATH for database migrations #5

This commit is contained in:
Marek Lesko
2025-07-28 11:32:32 +00:00
parent d66e7e7126
commit 228b303d3e

View File

@@ -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