-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCL_VARIABLE multiple key/value pairs not working #992
Comments
"I have tried setting them in GLC_VARIABLES but that has no effect" Show us how you tried using GCL_VARIABLE |
I use a .envrc file where all environment variables get exported automatically once I go into my folder (where I run gitlab-ci-local).
|
It's called |
Oh my bad... Thank you! |
Actually @firecow , it still does not work. I tried "GCL_VARIABLE" as you said, that does not work. I then tried "GCL_VARIABLES" and when I set that, and run gitlab-ci-local, I get the error:
BTW, the documentation in the readme is wrong apparently, that is why I put GLC_VARIABLES in the first place because it is described like that there. |
I have the same problem, it looks to me like GCL_VARIABLE supports only one variable, GCL_VARIABLES doesn't exist, but if it did, it would solve the problem when you have more than one variable and need expansion, such as login + password. |
I've fixed the documentation here e96e0ff And yes, that needs fixing, sorry about that, will be fixed in a moment, if I can find the bug. I've renamed the issue title, hope thats ok. |
@firecow can we merge the draft pr |
@AbdulRashidReshamwala No, its in draft because its not ready yet 😄 |
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
When I run gitlab-ci-local, Terraform fails to initialise against an AWS S3 backend (bucket).
Normally this works fine when AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set correctly as env vars. (or in Gitlab itself in the CI CD Variables section).
I have tried setting them in GLC_VARIABLES but that has no effect.
Host information
MacOS
gitlab-ci-local 4.43.0
Containerd binary
Docker
BTW
Works fine when I put them into .gitlab-ci-local-variables but would like to use ENV VAR GLC_VARIABLES as I work with dotenv a lot so I would not need to define them in different locations.
The text was updated successfully, but these errors were encountered: