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

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.
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.