Skip to content

bake: allow pattern matching for target names in --set#164

Merged
tonistiigi merged 3 commits intodocker:masterfrom
tiborvass:multitarget-set
Apr 23, 2020
Merged

bake: allow pattern matching for target names in --set#164
tonistiigi merged 3 commits intodocker:masterfrom
tiborvass:multitarget-set

Conversation

@tiborvass
Copy link
Copy Markdown
Collaborator

Although bake is for running multiple targets, --set required a single
target name for overriding a property. This change allows matching
multiple targets for overrides.

bake: add --load and --push shorthands for --set

@FernandoMiguel
Copy link
Copy Markdown
Contributor

I've been waiting for this for so long.
Thank you.

@tonistiigi
Copy link
Copy Markdown
Member

@tiborvass CI red

@tiborvass
Copy link
Copy Markdown
Collaborator Author

Updated with a dependent bugfix in #259

@tiborvass tiborvass requested a review from tonistiigi April 21, 2020 23:42
Tibor Vass added 3 commits April 23, 2020 05:54
Although bake is for running multiple targets, --set required a single
target name for overriding a property. This change allows matching
multiple targets for overrides.

Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
@tonistiigi tonistiigi merged commit 0e1f0e3 into docker:master Apr 23, 2020
@ChrisBr
Copy link
Copy Markdown

ChrisBr commented Dec 13, 2021

@tonistiigi are there any plans to support both, --load and --push, at the same time?

@tonistiigi
Copy link
Copy Markdown
Member

@ChrisBr Yes, but it needs a buildkit update to support multiple exporters.

@ChrisBr
Copy link
Copy Markdown

ChrisBr commented Dec 13, 2021

Awesome @tonistiigi, thanks for your response. So is this already supported in Buildkit or needs to be implemented there as well? Sorry for my naive question, we just stumbled upon this earlier and expected we could export and push at the same time. Also happy to have a look if there is already an issue to be worked on etc.

@tonistiigi
Copy link
Copy Markdown
Member

@ChrisBr No, there is an old PR moby/buildkit#1788 that got stuck and needs to be picked up or reimplemented.

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

Successfully merging this pull request may close these issues.

4 participants