mirror of https://github.com/docker/docs.git
Merge pull request #22617 from crazy-max/bake-fix-syntax
bake: fix hcl syntax
This commit is contained in:
parent
d03288ea1d
commit
ee35407538
|
|
@ -62,7 +62,7 @@ target "default" {
|
||||||
dockerfile="Dockerfile"
|
dockerfile="Dockerfile"
|
||||||
tags = [
|
tags = [
|
||||||
"my-image:latest",
|
"my-image:latest",
|
||||||
notequal("",TAG) ? "my-image:${TAG}": "",
|
notequal("",TAG) ? "my-image:${TAG}": ""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,8 @@ target "api" {
|
||||||
target "tests" {
|
target "tests" {
|
||||||
dockerfile = "tests.Dockerfile"
|
dockerfile = "tests.Dockerfile"
|
||||||
contexts = {
|
contexts = {
|
||||||
webapp = "target:webapp",
|
webapp = "target:webapp"
|
||||||
api = "target:api",
|
api = "target:api"
|
||||||
}
|
}
|
||||||
output = ["type=local,dest=build/tests"]
|
output = ["type=local,dest=build/tests"]
|
||||||
context = "."
|
context = "."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue