update pipelines
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user