mirror of https://github.com/docker/buildx.git
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:
parent
060ac842bb
commit
5a12b25bab
|
@ -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…
Reference in New Issue