update pipelines

This commit is contained in:
Kirill Andrusyak
2023-09-04 18:26:08 +00:00
parent 3f1af2e5a9
commit b2a2f0c18b
2 changed files with 43 additions and 9 deletions

View File

@@ -7,7 +7,6 @@ stages:
migration-dev:
stage: migration
image: dtzar/helm-kubectl:latest
tags:
- docker
only:
@@ -15,3 +14,17 @@ migration-dev:
script:
- sleep 30
- kubectl exec deploy/$CI_PROJECT_TITLE -n $NAMESPACE -- alembic upgrade head
deploy-prod:
stage: migration
variables:
NAMESPACE: "prod"
script:
- sleep 30
- kubectl exec deploy/$CI_PROJECT_TITLE -n $NAMESPACE -- alembic upgrade head
environment:
name: production
url: https://astra.dopcore.com/
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual