-
Notifications
You must be signed in to change notification settings - Fork 520
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
Allow --secret
flag to be set via an environment variable
#3076
Comments
This probably relates to Let me transfer this ticket |
From a quick look, I wonder if this would be more something to handle through |
Ideally I would prefer this to work OOTB with |
Alternatively is there any way for a BuildKit frontend to add secrets to the secret store for a build session? |
You can load secret value from env, but you still need to add flag for this loading to happen via
Technically, we have automatic
This is also technically possible, but would need to understand use-case more. We do want secrets to be used "for secrets", not for some side effect that happens when loading secrets. Otherwise, it should probably be adding some new construct in buildkit. |
For my usecase I was actually able to solve this with a wrapper around the |
Description
I would like to be able to set the
--secret
flag via an environment variable so that I can have some secrets always automatically specified for mydocker build
commands.The text was updated successfully, but these errors were encountered: