Update bake-reference.md

Before this change, there were two bugs:
- the HCL was not valid. in hcl, argument names can't be quoted
- the target argument should be a real target

Signed-off-by: Nick Santos <nick.santos@docker.com>
pull/1810/head
Nick Santos 2 years ago
parent 060ac842bb
commit 5a12b25bab
No known key found for this signature in database
GPG Key ID: DB427670C81C3850

@ -69,16 +69,16 @@ The following example shows the same Bake file in the HCL format:
```hcl
variable "TAG" {
"default" = "latest"
default = "latest"
}
group "default" {
"targets" = ["latest"]
targets = ["webapp"]
}
target "webapp" {
"dockerfile" = "Dockerfile"
"tags" = ["docker.io/username/webapp:${TAG}"]
dockerfile = "Dockerfile"
tags = ["docker.io/username/webapp:${TAG}"]
}
```

Loading…
Cancel
Save