buildx icon indicating copy to clipboard operation
buildx copied to clipboard

bake flag -f additively combines some keys and overwrites others

Open pongnguy opened this issue 3 years ago • 1 comments

The documentation mentions that specifying multiple bake files combines them, so this is explicitly an intended use case. Specifying another "target default" in json file appears to overwrite the prior (group: default: targets). However other keys are additively combined (e.g. targets). Can the "target default" in json file be additively combined as well?

pongnguy avatar Jan 07 '23 13:01 pongnguy

Hello. I've got this issue as well where I want to combine multiple bake files and have same target names be overridden depending on the order I specify the files.

The usage is also referenced in this chapter https://github.com/docker/metadata-action?tab=readme-ov-file#bake-definition where the bake-action reads from multiple file inputs.

jlilja avatar Aug 16 '24 15:08 jlilja