diff --git a/docs/reference/buildx_bake.md b/docs/reference/buildx_bake.md index 16073ec5..5c60de4f 100644 --- a/docs/reference/buildx_bake.md +++ b/docs/reference/buildx_bake.md @@ -450,6 +450,28 @@ target "webapp" { } ``` +alternatively, in json format: + +```json +{ + "variable": { + "TAG": { + "default": "latest" + } + } + "group": { + "default": { + "targets": ["webapp"] + } + }, + "target": { + "webapp": { + "tags": ["docker.io/username/webapp:${TAG}"] + } + } +} +``` + ```console $ docker buildx bake --print webapp {