-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add support for multiple Buildkit secrets with env vars or files as source #359
Add support for multiple Buildkit secrets with env vars or files as source #359
Conversation
@tphoney @eoinmcafee00 @d1wilko @mrsantons it's now almost two months that I'm trying to draw the attention of someone at @harness to get this PR reviewed as it would be really useful for my job. Please, can someone of you do something about it? |
Hey @ste93cry I am just finishing the meeting with the Drone team and you should be able to used the forked version in the interim until we review and merge this PR in. This is one of our core plug-in so we will need to pull it down and test it. Let me know if this helps and thanks for your contribution. |
Thank you for your answer. For what's worth, I've tested the changes on Linux and they work as expected, and if you take a look at what I'm doing is basically just splitting an existing option into two, so no new features here, just a different way to use an existing one
Sure, I understand. I just hope that you can do that without letting another month pass, because while it's definitely true that I can use my own forked version of the plugin, I don't want to do that more than necessary |
Given that there have been a few things merged into |
not right away, we generally run new changes on latest for a while to soak new features. Before doing a versioned release. Generally this is done for a week or so. |
Now that a week and an half passed and because I want to avoid the |
on it 👍 |
@ste93cry release prep is done, and ready to go. unfortunately, a few other things have taken priority, i am waiting on a team mates to get this merged and they are both unavailable. we will get this sorted on monday at latest |
Ok, thank you for the update! |
Thank you, much appreciated 🥳 |
#356 introduced the possibility to use the Buildkit secrets feature when building the Docker image. However, it's not possible to specify more than one secret due to the fact that the setting is a simple string that gets used as value of the
--secret
CLI arg. I wasn't also happy with the fact that thesecret
setting was basically just the plain value of the arg, leading people to need the knowledge of the syntax of thedocker build
command to use it. For this reason, I splitted the setting into two:secrets_from_env
andsecrets_from_file
. These new settings are just a list of strings in the formatkey=value
, where the key is the name of the secret and the value can be the name of an environment variable or a file path. This PR also supersedes #332 somewhat.Example usage
Dockerfile
:.drone.yml