mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-08-01 16:18:04 +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
|
```hcl
|
||||||
variable "TAG" {
|
variable "TAG" {
|
||||||
"default" = "latest"
|
default = "latest"
|
||||||
}
|
}
|
||||||
|
|
||||||
group "default" {
|
group "default" {
|
||||||
"targets" = ["latest"]
|
targets = ["webapp"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "webapp" {
|
target "webapp" {
|
||||||
"dockerfile" = "Dockerfile"
|
dockerfile = "Dockerfile"
|
||||||
"tags" = ["docker.io/username/webapp:${TAG}"]
|
tags = ["docker.io/username/webapp:${TAG}"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user