Add shell tag to docker-deploy job and set dependency for update_db job #5

This commit is contained in:
Marek Lesko
2025-07-28 10:57:11 +00:00
parent 14c3307339
commit a20155bb1e

View File

@@ -67,6 +67,7 @@ docker-deploy:
stage: release
tags:
- production
- shell
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
- cd deployment
@@ -77,11 +78,13 @@ docker-deploy:
update_db:
image: mcr.microsoft.com/dotnet/sdk:8.0
stage: release
needs: ["docker-deploy"]
script:
- dotnet restore
- dotnet build
- dotnet ef database update --project Api/Api.csproj --startup-project Api/Api.csproj
tags:
- production
- docker
variables:
ConnectionStrings__DefaultConnection: "Server=localhost;Database=CentrumDb;User=sa;Password=$DB_PASSWORD;TrustServerCertificate=True;"