...
 
Commits (2)
......@@ -73,7 +73,7 @@ review:start:
on_stop: review:stop
except:
refs:
#- master #staging
- master #staging
- production
- test/gitlab-ci
......@@ -96,6 +96,30 @@ review:stop:
- production
- test/gitlab-ci
staging:
stage: deploy
image: minds/helm-eks:latest
script:
- aws eks update-kubeconfig --name=sandbox
- git clone --branch=sandbox-wip https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/minds/helm-charts.git
- "helm upgrade \
--install \
--values=values-staging.yaml \
--set phpfpm.image.repository=$CI_REGISTRY_IMAGE/fpm \
--set phpfpm.image.tag=$CI_BUILD_REF \
--set runners.image.repository=$CI_REGISTRY_IMAGE/runners \
--set runners.image.tag=$CI_BUILD_REF \
--wait \
staging \
./helm-charts/minds"
environment:
name: staging
url: https://staging.minds.io/
only:
refs:
- master #staging
- test/staging
canary:fpm:
stage: deploy
image: minds/ci:latest
......@@ -116,6 +140,7 @@ canary:fpm:
- test/gitlab-ci
environment:
name: canary
url: https://www.minds.com/ #requires canary cookie
production:fpm:
stage: deploy
......@@ -133,6 +158,7 @@ production:fpm:
- aws ecs update-service --service=$ECS_APP_PRODUCTION_SERVICE --force-new-deployment --region us-east-1 --cluster=$ECS_CLUSTER
environment:
name: production
url: https://www.minds.com/
when: manual
production:runners:
......@@ -155,3 +181,4 @@ production:runners:
- test/gitlab-ci
environment:
name: production
url: https://www.minds.com/