Commit 9e74607b authored by Mark Harding's avatar Mark Harding
Browse files

(chore): split deploy stage into deployments

parent f7470a0e
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -8,8 +8,9 @@ stages:
  - test
  - prepare
  - review
  - staging
  - deploy
  - deploy:staging
  - deploy:canary
  - deploy:production

cache:
  paths:
@@ -96,7 +97,7 @@ review:stop:
      - test/gitlab-ci

staging:fpm:
  stage: staging
  stage: deploy:staging
  image: minds/ci:latest
  script:
    - IMAGE_LABEL="staging"
@@ -120,7 +121,7 @@ staging:fpm:
      - test/gitlab-ci

canary:fpm:
  stage: deploy
  stage: deploy:canary
  image: minds/ci:latest
  script:
    - IMAGE_LABEL="canary"
@@ -146,7 +147,7 @@ canary:fpm:
  allow_failure: false # prevents auto deploy to full production

production:fpm:
  stage: deploy
  stage: deploy:production
  image: minds/ci:latest
  script:
    - IMAGE_LABEL="production"
@@ -172,7 +173,7 @@ production:fpm:
  start_in: 2 hours # reduce? can always be deployed manually earlier too

production:runners:
  stage: deploy
  stage: deploy:production
  image: minds/ci:latest
  script:
    - $(aws ecr get-login --no-include-email --region us-east-1)