Skip to content
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

Environment variables from file #316

Open
mjmeintjes opened this issue Feb 12, 2024 · 3 comments
Open

Environment variables from file #316

mjmeintjes opened this issue Feb 12, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@mjmeintjes
Copy link

I'd like to get the sensitive environment variables (like S3 keys) from a file instead of having them directly in the config file.

So similar to the password-file option, maybe have an env-file in addition to the current env option.

@creativeprojects creativeprojects added enhancement New feature or request good first issue Good for newcomers labels Feb 12, 2024
@creativeprojects
Copy link
Owner

Yeah I suppose that shouldn't be difficult to implement 🤔

@jkellerer jkellerer self-assigned this Feb 13, 2024
@jkellerer
Copy link
Collaborator

jkellerer commented Feb 13, 2024

@creativeprojects , I'll take this one.

Had some thoughts about it last year. E.g. this feature should have the following parts:

  • Multiple env files support ( e.g. https://github.com/joho/godotenv )
  • Env file monitoring and reloading between run steps.
  • Template func to create a temporary env file (special case of {{ tempFile "filename" }}) that can be used in shell hooks to pass variables around (like in github actions).

@jkellerer
Copy link
Collaborator

jkellerer commented Feb 13, 2024

... and for later maybe: re-evaluate profile if env changed. ... removed as not relevant for now. Can be supported just in an init step to support dynamic config file creation (e.g. for #156 ), this is however out of topic for this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants