mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
Update 7 files
- /scripts/terraform-fmt.sh - /scripts/terraform-init.sh - /scripts/terraform-plan.sh - /scripts/terraform-validate.sh - /scripts/terraform-apply.sh - /scripts/terraform-destroy.sh - /templates/terraform.tpl.yml
This commit is contained in:
parent
db02cfc50d
commit
3648086d32
7 changed files with 85 additions and 0 deletions
58
templates/terraform.tpl.yml
Normal file
58
templates/terraform.tpl.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
.terraform_fmt:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- ./scripts/terraform-fmt.sh
|
||||
|
||||
.terraform_validate:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}
|
||||
script:
|
||||
- ./scripts/terraform-init.sh
|
||||
- ./scripts/terraform-validate.sh
|
||||
|
||||
.terraform_plan:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
PLAN: plan.tfplan
|
||||
JSON_PLAN_FILE: tfplan.json
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}
|
||||
script:
|
||||
- ./scripts/terraform-init.sh
|
||||
- ./scripts/terraform-plan.sh
|
||||
artifacts:
|
||||
reports:
|
||||
terraform: $WORKDIR/$JSON_PLAN_FILE
|
||||
|
||||
|
||||
.terraform_apply:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}
|
||||
script:
|
||||
- ./scripts/terraform-init.sh
|
||||
- ./scripts/terraform-apply.sh
|
||||
|
||||
.terraform_destroy:
|
||||
image:
|
||||
name: registry.durp.info/hashicorp/terraform:light
|
||||
#name: hashicorp/terraform:light
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}
|
||||
WORKDIR: $CI_PROJECT_DIR
|
||||
script:
|
||||
- ./scripts/terraform-init.sh
|
||||
- ./scripts/terraform-destroy.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue