2021-05-10 13:54:35 +00:00
|
|
|
target "docker-metadata-action" {}
|
2020-12-24 03:13:41 +00: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 13:54:35 +00:00
|
|
|
inherits = ["docker-metadata-action"]
|
2020-12-24 03:13:41 +00: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"
|
|
|
|
}
|
|
|
|
}
|