Commit 6eb27170 authored by Kent Lee's avatar Kent Lee

Update index.md

Environment variable derived within gitlab-ci can't be re-used by other environmnet variable
parent 3ecbbe3a
......@@ -121,12 +121,11 @@ to the repository.
```yaml
variables:
TF_STATE: ${CI_PROJECT_NAME}
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${TF_STATE}
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}
TF_ROOT: ${CI_PROJECT_DIR}/environments/cloudflare/production
cache:
key: ${TF_STATE}
key: ${CI_PROJECT_NAME}
paths:
- ${TF_ROOT}/.terraform
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment