add note about variable syntax in json

In addition to HCL, variables can also be defined in json.

Signed-off-by: wojciechem <wmiedzybrodzki@outlook.com>
pull/866/head
Wojciech M 3 years ago committed by wojciechem
parent ab73275f58
commit 42287815b5

@ -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
{

Loading…
Cancel
Save