Skip to content
Snippets Groups Projects

Add canary deploys

Closed Kamil Trzcińśki requested to merge canary-deploys into master
3 unresolved threads
1 file
+ 15
6
Compare changes
  • Side-by-side
  • Inline
@@ -11,6 +11,7 @@ stages:
- test
- review
- staging
- canary
- production
- cleanup
@@ -21,23 +22,32 @@ build:
only:
- branches
canary:
    • @ayufan This makes canaries part of every auto deploy, even for GitLab CE. Are we sure we want to do that? Can we have a different template for CE vs EE? I mean, it's not horrible to do it this way. But it means we're giving some level of canary deploy support to CE, and only visualization of canary deploys to EEP. /cc @JobV

Please register or sign in to reply
stage: canary
script:
- command canary
environment:
name: production
url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
when: manual
allow_failure: false
only:
- master
production:
stage: production
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
script:
- command deploy
environment:
name: production
url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
when: manual
allow_failure: false
Please register or sign in to reply
only:
- master
staging:
stage: staging
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-staging.$KUBE_DOMAIN
script:
- command deploy
environment:
@@ -48,8 +58,6 @@ staging:
review:
stage: review
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
script:
- command deploy
environment:
@@ -71,6 +79,7 @@ stop_review:
name: review/$CI_COMMIT_REF_NAME
Please register or sign in to reply
action: stop
when: manual
allow_failure: true
only:
- branches
except:
Loading