Open Geczy opened 1 year ago
You should be able to setup your command in question in a hidden recipe and have a public recipe call it with the integration environment
# Public Integration Recipe
command:
doppler run -- just _command
# Hidden Actual Recipe
_command:
# all the code...
unfortunately that doesn't work me.
just command
gives me Doppler Error: Invalid Auth token
. However if I type doppler run -- just _command
in the terminal it works fine
I wish we had a general solution for these kinds of thing. This is an instance of the more general problem that you cannot run a command which exports variables, and then have those variables exported to your just
recipes.
In this case, can you have doppler
export secrets to a .env
file, which just
then loads?
currently i always have to do:
i would like to just do:
and somewhere in the justfile it will load the doppler variables, how can i do this?
https://github.com/dotabod/backend/blob/master/justfile
related: https://github.com/casey/just/issues/945#issuecomment-1126410263