Merge pull request #3658 from crazy-max/update-platforms

bake: align platforms
This commit is contained in:
Sebastiaan van Stijn 2022-06-06 20:30:42 +02:00 committed by GitHub
commit 7294e7c701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" {