debian-mirror-gitlab/lib/gitlab/ci/templates/Deploy-ECS.gitlab-ci.yml

37 lines
555 B
YAML
Raw Normal View History

2020-04-08 14:13:33 +05:30
stages:
- build
- test
- review
- deploy
- production
include:
- template: Jobs/Build.gitlab-ci.yml
.deploy_to_ecs:
2020-04-22 19:07:51 +05:30
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-ecs:latest
2020-04-08 14:13:33 +05:30
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