Y
Hacker News
new
|
ask
|
show
|
jobs
by
adamgordonbell
1660 days ago
You may want to use secrets like this:
earthly \ --secret-file config=/home/user/.aws/config \ +build
But yes, Earthly optimizes for reproducibility, so implicitly pulling in ENVs is not something it does.
2 comments
andyonthewings
1660 days ago
The required build arg and env var names are already listed in the Earthfile as `ARG` and `RUN --secret ...`. So I think specifying it in the commandline is redundant.
link
honkycat
1660 days ago
I didn't use secrets because it is a prototype, and I need to explicitly give RUNs access to secret values, and I got sick of the boilerplate.
link