Merge pull request #866 from Wojciechem/patch-1

add note about variable syntax in json
pull/867/head
CrazyMax 3 years ago committed by GitHub
commit 93d6b654ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save