mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-31 23:58:03 +08:00
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:
@@ -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}"]
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user