mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-20 10:27:46 +08:00
Merge pull request #1810 from nicks/patch-1
fix two bugs in bake-reference.md
This commit is contained in:
commit
1dd31fefcb
@ -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}"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user