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

34 lines
935 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
2022-07-16 23:28:13 +05:30
- template: Jobs/SAST-IaC.latest.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/SAST-IaC.latest.gitlab-ci.yml
2021-01-03 14:25:43 +05:30
stages:
- validate
2022-03-02 08:16:31 +05:30
- test
2021-01-03 14:25:43 +05:30
- build
- deploy
2023-01-13 00:05:48 +05:30
- cleanup
2021-01-03 14:25:43 +05:30
2021-11-11 11:23:49 +05:30
fmt:
extends: .terraform:fmt
2021-12-11 22:18:48 +05:30
needs: []
2021-11-11 11:23:49 +05:30
2021-01-03 14:25:43 +05:30
validate:
2021-10-27 15:23:28 +05:30
extends: .terraform:validate
2021-12-11 22:18:48 +05:30
needs: []
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