Skip to content
Snippets Groups Projects
Commit 825d9962 authored by Andrea Galbusera's avatar Andrea Galbusera
Browse files

CI: move variable evaluation to before_script

No shell "advanced" variable substitution is provided by the yaml 'variable:'
construct. This commit moves the evaluation of TF_COMMON_ARGS to the
before_script, where a shell provides the usual expansion mechanisms.
parent afb05132
No related branches found
No related tags found
1 merge request!3Resolve "Job Failed #6091"
Pipeline #3815 passed
......@@ -7,7 +7,6 @@ variables:
PLAN: plan.tfplan
JSON_PLAN_FILE: plan.json
GITLAB_TF_ADDRESS: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}"
TF_COMMON_ARGS: "-var hcloud_token=${HCLOUD_RW_TOKEN:=$HCLOUD_RO_TOKEN} -var theo_token=${THEO_TOKEN}"
cache:
key: "$CI_COMMIT_SHA"
......@@ -32,6 +31,7 @@ before_script:
-backend-config="lock_method=POST"
-backend-config="unlock_method=DELETE"
-backend-config="retry_wait_min=5"
- TF_COMMON_ARGS="-var hcloud_token=${HCLOUD_RW_TOKEN:=$HCLOUD_RO_TOKEN} -var theo_token=${THEO_TOKEN}"
stages:
- validate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment