Skip to content
Snippets Groups Projects
Unverified Commit 3ecb0ad0 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Add canary deploys

parent 94fcb77e
No related branches found
No related tags found
1 merge request!68Add canary deploys
Pipeline #
Loading
@@ -11,6 +11,7 @@ stages:
Loading
@@ -11,6 +11,7 @@ stages:
- test - test
- review - review
- staging - staging
- canary
- production - production
- cleanup - cleanup
   
Loading
@@ -21,23 +22,32 @@ build:
Loading
@@ -21,23 +22,32 @@ build:
only: only:
- branches - branches
   
canary:
stage: canary
script:
- command canary
environment:
name: production
url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
when: manual
allow_failure: false
only:
- master
production: production:
stage: production stage: production
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
script: script:
- command deploy - command deploy
environment: environment:
name: production name: production
url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
when: manual when: manual
allow_failure: false
only: only:
- master - master
   
staging: staging:
stage: staging stage: staging
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-staging.$KUBE_DOMAIN
script: script:
- command deploy - command deploy
environment: environment:
Loading
@@ -48,8 +58,6 @@ staging:
Loading
@@ -48,8 +58,6 @@ staging:
   
review: review:
stage: review stage: review
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
script: script:
- command deploy - command deploy
environment: environment:
Loading
@@ -71,6 +79,7 @@ stop_review:
Loading
@@ -71,6 +79,7 @@ stop_review:
name: review/$CI_COMMIT_REF_NAME name: review/$CI_COMMIT_REF_NAME
action: stop action: stop
when: manual when: manual
allow_failure: true
only: only:
- branches - branches
except: except:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment