docs
docs copied to clipboard
Document the syntax for passing multiple build secrets to `fly deploy`
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?
I also stumbled across that
fly deploy \
--build-secret MY_SUPER_SECRET=some_value \
--build-secret ANOTHER_SECRET=other_value