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