-
Hello, Let's imagine I have an environment variable, which was created before I run export MY_SENSITIVE_VARIABLE='5uper5ecret' I was trying to naively define it in the ---
global:
MY_SENSITIVE_VARIABLE: "$MY_SENSITIVE_VARIABLE"
MY_OTHER_VARIABLE: "$MY_SENSITIVE_VARIABLE" However both of these variables have appeared empty. I would like to understand what options cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You have to pass it like so You could add a feature request under issue, that suggests a syntax in gitlab-ci-local variable.yml's that makes them able to auto-fetch values from the terminal env. ---
global:
MY_SENSITIVE_VARIABLE: "{{ fromTerminalEnv('MY_SENSITIVE_VARIABLE') }} " Or something like that 😄 |
Beta Was this translation helpful? Give feedback.
You have to pass it like so
gitlab-ci-local --variable MY_SENSITIVE_VARIABLE=${MY_SENSITIVE_VARIABLE}
You could add a feature request under issue, that suggests a syntax in gitlab-ci-local variable.yml's that makes them able to auto-fetch values from the terminal env.
Or something like that 😄