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