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

34 lines
900 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:
2022-07-23 23:45:48 +05:30
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml
2021-09-30 23:02:18 +05:30
2021-09-04 01:27:46 +05:30
include:
2022-07-16 23:28:13 +05:30
- 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
2018-03-17 18:26:18 +05:30
stages:
- validate
2022-07-16 23:28:13 +05:30
- test
2018-03-17 18:26:18 +05:30
- build
- deploy
2023-01-13 00:05:48 +05:30
- cleanup
2018-03-17 18:26:18 +05:30
2022-07-16 23:28:13 +05:30
fmt:
extends: .terraform:fmt
needs: []
2021-09-04 01:27:46 +05:30
2018-03-17 18:26:18 +05:30
validate:
2022-07-16 23:28:13 +05:30
extends: .terraform:validate
needs: []
2018-03-17 18:26:18 +05:30
2021-09-04 01:27:46 +05:30
build:
2022-07-16 23:28:13 +05:30
extends: .terraform:build
2018-03-17 18:26:18 +05:30
2021-09-04 01:27:46 +05:30
deploy:
2022-07-16 23:28:13 +05:30
extends: .terraform:deploy
2018-03-17 18:26:18 +05:30
dependencies:
2021-09-04 01:27:46 +05:30
- build
2022-07-16 23:28:13 +05:30
environment:
name: $TF_STATE_NAME