docs icon indicating copy to clipboard operation
docs copied to clipboard

Document the syntax for passing multiple build secrets to `fly deploy`

Open timbeadle opened this issue 2 years ago • 1 comments

In the Build Secrets doc, it mentions in both the Dockerfile and deploy command that it is possible to mount and pass multiple build secrets:

# Note: You can mount multiple secrets
RUN --mount=type=secret,id=MY_SUPER_SECRET \
    MY_SUPER_SECRET="$(cat /run/secrets/MY_SUPER_SECRET)" some_command \
    && more_commands_maybe
# Note: You can pass multiple secrets if you need
fly deploy \
    --build-secret MY_SUPER_SECRET=some_value

It's not clear what the syntax should be for passing multiple secrets. Could an example be shown for multiple secrets, please?

timbeadle avatar Jan 27 '23 10:01 timbeadle

I also stumbled across that

fly deploy \ 
    --build-secret MY_SUPER_SECRET=some_value \
    --build-secret ANOTHER_SECRET=other_value

henrik-d avatar Jul 23 '24 13:07 henrik-d