Add shell tag to docker-deploy job and set dependency for update_db job #5
This commit is contained in:
@@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user