How can I let gitlab fill a global variable with from CI/CD secret, and then inherit this global variable in other projects?
templates/commons.yml
:
variables:
TEST_VAR: $FILLED_FROM_SECRETS
project/.gitlab_ci.yml
.
include:
- project: '/templates'
ref: master
file:
- 'commons.yml'
test:
stage: test
script:
- echo $TEST_VAR
Result: the variable is never set. Why?
(of course the FILLED_FORM_SECRETS
variable is set in the commons project)
