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

Support for environment variables #43

Closed
whazor opened this issue Dec 30, 2021 · 2 comments · Fixed by #47
Closed

Support for environment variables #43

whazor opened this issue Dec 30, 2021 · 2 comments · Fixed by #47

Comments

@whazor
Copy link
Contributor

whazor commented Dec 30, 2021

Currently I provide secrets via !env_var and have an env stub file that I would like to use for testing my home assistant configuration.

@frenck
Copy link
Owner

frenck commented Jan 13, 2022

Interesting case, that would indeed be a nice addition.

How would you envision this would be configured?

@whazor
Copy link
Contributor Author

whazor commented Jan 14, 2022

Via a file env_file as optional input of the action where you can give up an .env file, then it will add --env-file to the docker check command. This will allow you to use !env_var inside of your home assistant config and have an env stub where you store secrets/variables.

This is a common pattern for people running Home Assistant in Kubernetes via k8s at home and where people mount secrets via environment variables, such that you can use encrypted secrets via SOPS.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants