Skip to content

Commit 9110fbe

Browse files
authored
build: --set (#23512)
<!--Delete sections as needed --> ## Description addresses docker/buildx#872 Upstream PR here docker/buildx#3456 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 2d4a2ca commit 9110fbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/manuals/build/bake/overrides.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ $ docker buildx bake --set app.args.mybuildarg=bar --set app.platform=linux/arm6
212212
}
213213
```
214214

215+
> [!NOTE]
216+
>
217+
> `--set` is a repeatable flag. For array fields such as `tags`, repeat `--set` to provide multiple values or use the `+=` operator to append without replacing.
218+
> Array literal syntax like `--set target.tags=[a,b]` is not supported.
219+
> The `platform` field is a special case. It also accepts a comma-separated list.
220+
215221
Pattern matching syntax defined in [https://golang.org/pkg/path/#Match](https://golang.org/pkg/path/#Match)
216222
is also supported:
217223

0 commit comments

Comments
 (0)