2021-05-10 21:54:35 +08:00
|
|
|
target "docker-metadata-action" {}
|
2020-12-24 11:13:41 +08:00
|
|
|
|
|
|
|
group "default" {
|
|
|
|
targets = ["db", "app"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "release" {
|
|
|
|
targets = ["db", "app-plus"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "db" {
|
|
|
|
context = "./test"
|
|
|
|
tags = ["docker.io/tonistiigi/db"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "app" {
|
2021-05-10 21:54:35 +08:00
|
|
|
inherits = ["docker-metadata-action"]
|
2020-12-24 11:13:41 +08:00
|
|
|
context = "./test"
|
|
|
|
dockerfile = "Dockerfile"
|
|
|
|
args = {
|
|
|
|
name = "foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
target "cross" {
|
|
|
|
platforms = [
|
|
|
|
"linux/amd64",
|
|
|
|
"linux/arm64",
|
|
|
|
"linux/386"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "app-plus" {
|
|
|
|
inherits = ["app", "cross"]
|
|
|
|
args = {
|
|
|
|
IAMPLUS = "true"
|
|
|
|
}
|
|
|
|
}
|