2020-03-16 08:09:12 -04:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- review
|
|
|
|
- deploy
|
|
|
|
- production
|
|
|
|
|
|
|
|
include:
|
|
|
|
- template: Jobs/Build.gitlab-ci.yml
|
|
|
|
|
|
|
|
.deploy_to_ecs:
|
2020-04-15 05:09:46 -04:00
|
|
|
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-ecs:latest
|
2020-03-16 08:09:12 -04:00
|
|
|
script:
|
|
|
|
- ecs update-task-definition
|
|
|
|
|
|
|
|
review:
|
|
|
|
extends: .deploy_to_ecs
|
|
|
|
stage: review
|
|
|
|
environment:
|
|
|
|
name: review/$CI_COMMIT_REF_NAME
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- branches
|
|
|
|
- tags
|
|
|
|
except:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
|
|
|
|
production:
|
|
|
|
extends: .deploy_to_ecs
|
|
|
|
stage: production
|
|
|
|
environment:
|
|
|
|
name: production
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|