Update .gitlab-ci.yml, terraform/variables.tf

This commit is contained in:
2022-11-05 13:29:35 +00:00
parent c4a050957e
commit 73ff739832
2 changed files with 17 additions and 1 deletions

View File

@@ -25,6 +25,21 @@ format:
when: always
- when: never
validate:
stage: lint
variables:
WORKDIR: $CI_PROJECT_DIR/terraform
allow_failure: false
extends: .terraform_validate
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
compare_to: refs/heads/main
paths:
- 'terraform/*'
when: always
- when: never
plan:
stage: lint
variables:
@@ -32,6 +47,7 @@ plan:
ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars
allow_failure: false
extends: .terraform_plan
needs: ["validate","format"]
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:

View File

@@ -35,7 +35,7 @@ variable "k3master" {
storage = string
template = string
node = string
ip = list(number)
ip = list(number)
})
}