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
ENV variables in secret targetpath #2469
Comments
I would have expected this to work with the |
It's interesting to note that the
which only shows that
Under the hood, when earthly is run with the However if the shell-out-anywhere lexer encounters so as a work-around, you can force the run mount path to be expanded using a shellout by running Here's a example:
Then running
It's an unexpected work-around -- perhaps we should add some sort of heuristic to automatically have |
Thanks for your workaround, yes i think the automatic expand could help here. |
There is another strange behaviour i just got related to ENV variables. If a variable is expanded through shell-out it should still work. push: +push | --> RUN --no-cache echo "$AWS_REGION" |
instead you would need to do |
Thanks for pointing this out. |
I try to mount a secret as a file inside the $HOME directory. Unfortunately this does not work.
I assume that earthly is not replacing the env variable $HOME in the target.
The text was updated successfully, but these errors were encountered: