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>
This commit is contained in:
Nick Santos 2023-05-17 18:56:58 -04:00
parent 060ac842bb
commit 5a12b25bab
No known key found for this signature in database
GPG Key ID: DB427670C81C3850
1 changed files with 4 additions and 4 deletions

View File

@ -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}"]
}
```