ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/966129271
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
.terraform_fmt:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
WORKDIR: $CI_PROJECT_DIR/terraform
|
||||
script:
|
||||
# Begin of cd-workdir.sh
|
||||
- |
|
||||
@@ -18,13 +12,6 @@
|
||||
terraform fmt -diff -check -write=false
|
||||
# End of terraform-fmt.sh
|
||||
.terraform_validate:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
WORKDIR: $CI_PROJECT_DIR/terraform
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${ENVIRONMENT_NAME}
|
||||
script:
|
||||
# Begin of cd-workdir.sh
|
||||
- |
|
||||
@@ -40,15 +27,9 @@
|
||||
- "#Terraform validate\nterraform validate \n"
|
||||
# End of terraform-validate.sh
|
||||
.terraform_plan:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
WORKDIR: $CI_PROJECT_DIR/terraform
|
||||
PLAN: plan.tfplan
|
||||
JSON_PLAN_FILE: tfplan.json
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${ENVIRONMENT_NAME}
|
||||
script:
|
||||
# Begin of cd-workdir.sh
|
||||
- |
|
||||
@@ -67,13 +48,6 @@
|
||||
reports:
|
||||
terraform: $WORKDIR/$JSON_PLAN_FILE
|
||||
.terraform_apply:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
WORKDIR: $CI_PROJECT_DIR/terraform
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${ENVIRONMENT_NAME}
|
||||
script:
|
||||
# Begin of cd-workdir.sh
|
||||
- |
|
||||
@@ -91,13 +65,6 @@
|
||||
terraform apply -auto-approve $ARGUMENTS
|
||||
# End of terraform-apply.sh
|
||||
.terraform_destroy:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
WORKDIR: $CI_PROJECT_DIR/terraform
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${ENVIRONMENT_NAME}
|
||||
script:
|
||||
# Begin of cd-workdir.sh
|
||||
- |
|
||||
|
||||
Reference in New Issue
Block a user