2021-06-28 06:07:45 +00:00
|
|
|
# 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:
|
2022-05-31 00:09:17 +00:00
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml
|
2021-06-28 06:07:45 +00:00
|
|
|
|
2021-06-16 09:10:10 +00:00
|
|
|
include:
|
2022-05-13 03:08:13 +00:00
|
|
|
- template: Terraform/Base.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Base.gitlab-ci.yml
|
|
|
|
- template: Jobs/SAST-IaC.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/SAST-IaC.gitlab-ci.yml
|
2017-09-07 09:25:06 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- validate
|
2022-05-13 03:08:13 +00:00
|
|
|
- test
|
2017-09-07 09:25:06 +00:00
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2022-05-13 03:08:13 +00:00
|
|
|
fmt:
|
|
|
|
extends: .terraform:fmt
|
|
|
|
needs: []
|
2021-06-16 09:10:10 +00:00
|
|
|
|
2017-09-07 09:25:06 +00:00
|
|
|
validate:
|
2022-05-13 03:08:13 +00:00
|
|
|
extends: .terraform:validate
|
|
|
|
needs: []
|
2017-09-07 09:25:06 +00:00
|
|
|
|
2021-06-16 09:10:10 +00:00
|
|
|
build:
|
2022-05-13 03:08:13 +00:00
|
|
|
extends: .terraform:build
|
2017-09-07 09:25:06 +00:00
|
|
|
|
2021-06-16 09:10:10 +00:00
|
|
|
deploy:
|
2022-05-13 03:08:13 +00:00
|
|
|
extends: .terraform:deploy
|
2017-09-07 09:25:06 +00:00
|
|
|
dependencies:
|
2021-06-16 09:10:10 +00:00
|
|
|
- build
|
2022-05-13 03:08:13 +00:00
|
|
|
environment:
|
|
|
|
name: $TF_STATE_NAME
|