Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
timbeadle opened this issue Jan 27, 2023 · 1 comment
Open

Comments

@timbeadle
Copy link

timbeadle commented Jan 27, 2023

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
Copy link

I also stumbled across that

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants