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
- dotnet restore ./Api.csproj
- dotnet build ./Api.csproj
- dotnet tool install --global dotnet-ef
- dotnet ef database update --project ./Api.csproj --startup-project ./Api.csproj
- dotnet tool install --global dotnet-ef --version 8.*
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet-ef database update --project ./Api.csproj --startup-project ./Api.csproj
tags:
- production
- docker