You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there's a bug with the EARTHLY_SECRETS env var. Per docs, I should be able to define CSV secrets instead of individually passing in with the --secret argument.
Given a target:
some-target:
RUN --secret SOME_SECRET=+secrets/SOME_SECRET echo $SOME_SECRET
these commands succeed
# passing in as a key/value
earth --secret SOME_SECRET=a --no-cache +code
# setting the environment inline
SOME_SECRET=a earth --no-cache --secret SOME_SECRET +some-target
# setting the env var in a separate commandexport SOME_SECRET=a
earth --no-cache --secret SOME_SECRET +some-target
and these commands fail...
# using key/value earthly secrets inline
EARTHLY_SECRETS="SOME_SECRET=a" \
earth --no-cache +some-target
# setting env var separately as key/valueexport EARTHLY_SECRETS="SOME_SECRET=a"
earth --no-cache +some-target
# setting env vars separatelyexport SOME_SECRET=a
export EARTHLY_SECRETS="SOME_SECRET"
earth --no-cache +some-target
... with the error message:
+some-target | --> RUN echo $SOME_SECRET
+some-target | ERROR: (RUN echo $SOME_SECRET) secret SOME_SECRET not found: not found
Repeating the output of the command that caused the failure
=========================== FAILURE ===========================
+some-target failed | --> RUN echo $SOME_SECRET
+some-target failed | [no output]
+some-target failed | ERROR: (RUN echo $SOME_SECRET) secret SOME_SECRET not found: not found
Error: solve side effects: solve: failed to solve: rpc error: code = Unknown desc = secret SOME_SECRET not found: not found
The text was updated successfully, but these errors were encountered:
I believe there's a bug with the
EARTHLY_SECRETS
env var. Per docs, I should be able to define CSV secrets instead of individually passing in with the--secret
argument.Given a target:
these commands succeed
and these commands fail...
... with the error message:
The text was updated successfully, but these errors were encountered: