summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml')
-rw-r--r--lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml b/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
index d34a847f2d5..a9f6fd88d0b 100644
--- a/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
+++ b/lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
@@ -14,15 +14,22 @@ stages:
- cleanup
init:
- extends: .init
+ extends: .terraform:init
validate:
- extends: .validate
+ extends: .terraform:validate
build:
- extends: .build
+ extends: .terraform:build
deploy:
- extends: .deploy
+ extends: .terraform:deploy
dependencies:
- build
+ environment:
+ name: $TF_STATE_NAME
+
+cleanup:
+ extends: .terraform:destroy
+ dependencies:
+ - deploy