debian-mirror-gitlab/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml

34 lines
784 B
YAML
Raw Normal View History

2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
2021-01-03 14:25:43 +05:30
include:
2021-01-29 00:20:46 +05:30
- template: Terraform/Base.latest.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
2021-01-03 14:25:43 +05:30
stages:
- init
- validate
- build
- deploy
2021-01-29 00:20:46 +05:30
- cleanup
2021-01-03 14:25:43 +05:30
init:
2021-10-27 15:23:28 +05:30
extends: .terraform:init
2021-01-03 14:25:43 +05:30
2021-11-11 11:23:49 +05:30
fmt:
extends: .terraform:fmt
2021-01-03 14:25:43 +05:30
validate:
2021-10-27 15:23:28 +05:30
extends: .terraform:validate
2021-01-03 14:25:43 +05:30
build:
2021-10-27 15:23:28 +05:30
extends: .terraform:build
2021-01-03 14:25:43 +05:30
deploy:
2021-10-27 15:23:28 +05:30
extends: .terraform:deploy
2021-01-03 14:25:43 +05:30
dependencies:
- build
2021-10-27 15:23:28 +05:30
environment:
name: $TF_STATE_NAME