Merge pull request #866 from Wojciechem/patch-1

add note about variable syntax in json
This commit is contained in:
CrazyMax 2021-11-29 09:12:40 +01:00 committed by GitHub
commit 93d6b654ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ```console
$ docker buildx bake --print webapp $ docker buildx bake --print webapp
{ {