bake: align platforms

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-06-06 18:33:11 +02:00
parent b75c262639
commit 8e0afc6489
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 19 additions and 7 deletions

View File

@ -26,6 +26,22 @@ target "_common" {
} }
} }
target "_platforms" {
platforms = [
"darwin/amd64",
"darwin/arm64",
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x",
"windows/amd64",
"windows/arm64"
]
}
group "default" { group "default" {
targets = ["binary"] targets = ["binary"]
} }
@ -62,20 +78,16 @@ target "plugins" {
} }
} }
target "platforms" {
platforms = concat(["linux/amd64", "linux/386", "linux/arm64", "linux/arm", "linux/ppc64le", "linux/s390x", "darwin/amd64", "darwin/arm64", "windows/amd64", "windows/arm", "windows/386"], USE_GLIBC!=""?[]:["windows/arm64"])
}
target "cross" { target "cross" {
inherits = ["binary", "platforms"] inherits = ["binary", "_platforms"]
} }
target "dynbinary-cross" { target "dynbinary-cross" {
inherits = ["dynbinary", "platforms"] inherits = ["dynbinary", "_platforms"]
} }
target "plugins-cross" { target "plugins-cross" {
inherits = ["plugins", "platforms"] inherits = ["plugins", "_platforms"]
} }
target "lint" { target "lint" {