Refactor update_db job to specify project paths for dotnet commands #5

This commit is contained in:
Marek Lesko
2025-07-28 11:12:10 +00:00
parent e84cf9dfb7
commit b3e459211d

View File

@@ -54,9 +54,9 @@ update_db:
needs: ["docker-deploy"]
script:
- cd Api
- dotnet restore
- dotnet build
- dotnet ef database update --project Api/Api.csproj --startup-project Api/Api.csproj
- dotnet restore ./Api.csproj
- dotnet build ./Api.csproj
- dotnet ef database update --project ./Api.csproj --startup-project ./Api.csproj
tags:
- production
- docker