From b3e459211d38fcaa0ae3c2a759b622f2f8e8640a Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Mon, 28 Jul 2025 11:12:10 +0000 Subject: [PATCH] Refactor update_db job to specify project paths for dotnet commands #5 --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6db1a8..12d6157 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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