summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Jobs/Deploy/ECS.gitlab-ci.yml
blob: 642f0ebeaf7468a533fb5c26fcd4a84126f76e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.deploy_to_ecs:
  image: 'registry.gitlab.com/gitlab-org/cloud-deploy/aws-ecs:latest'
  script:
    - ecs update-task-definition

review_ecs:
  extends: .deploy_to_ecs
  stage: review
  environment:
    name: review/$CI_COMMIT_REF_NAME
  rules:
    - if: '$AUTO_DEVOPS_PLATFORM_TARGET != "ECS"'
      when: never
    - if: '$CI_KUBERNETES_ACTIVE'
      when: never
    - if: '$REVIEW_DISABLED'
      when: never
    - if: '$CI_COMMIT_BRANCH != "master"'

production_ecs:
  extends: .deploy_to_ecs
  stage: production
  environment:
    name: production
  rules:
    - if: '$AUTO_DEVOPS_PLATFORM_TARGET != "ECS"'
      when: never
    - if: '$CI_KUBERNETES_ACTIVE'
      when: never
    - if: '$CI_COMMIT_BRANCH == "master"'