ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/966129271
This commit is contained in:
2023-08-13 13:03:33 +00:00
parent 94e8153768
commit 1ae683f7d8

View File

@@ -1,10 +1,4 @@
.terraform_fmt: .terraform_fmt:
image:
name: registry.durp.info/hashicorp/terraform:light
#name: hashicorp/terraform:light
entrypoint: [""]
variables:
WORKDIR: $CI_PROJECT_DIR/terraform
script: script:
# Begin of cd-workdir.sh # Begin of cd-workdir.sh
- | - |
@@ -18,13 +12,6 @@
terraform fmt -diff -check -write=false terraform fmt -diff -check -write=false
# End of terraform-fmt.sh # End of terraform-fmt.sh
.terraform_validate: .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: script:
# Begin of cd-workdir.sh # Begin of cd-workdir.sh
- | - |
@@ -40,15 +27,9 @@
- "#Terraform validate\nterraform validate \n" - "#Terraform validate\nterraform validate \n"
# End of terraform-validate.sh # End of terraform-validate.sh
.terraform_plan: .terraform_plan:
image:
name: registry.durp.info/hashicorp/terraform:light
#name: hashicorp/terraform:light
entrypoint: [""]
variables: variables:
WORKDIR: $CI_PROJECT_DIR/terraform
PLAN: plan.tfplan PLAN: plan.tfplan
JSON_PLAN_FILE: tfplan.json JSON_PLAN_FILE: tfplan.json
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${ENVIRONMENT_NAME}
script: script:
# Begin of cd-workdir.sh # Begin of cd-workdir.sh
- | - |
@@ -67,13 +48,6 @@
reports: reports:
terraform: $WORKDIR/$JSON_PLAN_FILE terraform: $WORKDIR/$JSON_PLAN_FILE
.terraform_apply: .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: script:
# Begin of cd-workdir.sh # Begin of cd-workdir.sh
- | - |
@@ -91,13 +65,6 @@
terraform apply -auto-approve $ARGUMENTS terraform apply -auto-approve $ARGUMENTS
# End of terraform-apply.sh # End of terraform-apply.sh
.terraform_destroy: .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: script:
# Begin of cd-workdir.sh # Begin of cd-workdir.sh
- | - |