Using environment variables from gitlab #2547
Unanswered
ghost
asked this question in
Help needed
Replies: 1 comment
-
I don't know if it answers your question but you can do this to define manually a environment variable: config:
env:
API_PASSWORD: 'your_api_password' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Its not good practice to keep production .env details in git. As there will be keys and passwords.
I was hoping to define those in environment variables of gitlab, and use them in yaml file.
But i am not sure how would i achieve that. I searched here in issues also didnt find anything in documents.
Here i tried to copy the .env.example to .env, but still its not what i am looking for.
I was hoping to have environment variables fetched from gitlab or github that is being manually defined there by me.
Beta Was this translation helpful? Give feedback.
All reactions