superfly / docs

Apache License 2.0
101 stars 1.04k forks source link

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

Open timbeadle opened 1 year ago

timbeadle commented 1 year ago

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?

henrik-d commented 1 month ago

I also stumbled across that

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