debian-mirror-gitlab/lib/gitlab/ci/templates/Jobs/CF-Provision.gitlab-ci.yml
2021-01-30 21:13:32 +05:30

14 lines
409 B
YAML

stages:
- provision
cloud_formation:
image: 'registry.gitlab.com/gitlab-org/cloud-deploy/aws-cloudformation:latest'
stage: provision
script:
- gl-cloudformation create-stack
rules:
- if: '($AUTO_DEVOPS_PLATFORM_TARGET != "EC2") || ($AUTO_DEVOPS_PLATFORM_TARGET != "ECS")'
when: never
- if: '$CI_KUBERNETES_ACTIVE'
when: never
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'