mirror of https://github.com/docker/cli.git
bake: remove windows targets other than windows/amd64
Docker 20.10 only supports windows/amd64, and though tonistiigi/xx allows us to support many other architectures, I preferred to not have to vendor in 12k lines of golang.org/x/sys just to get windows/arm64 working. This is only meant for 20.10. Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
feb6f439e3
commit
dc017bdda3
|
@ -41,8 +41,8 @@ variable "GROUP_INDEX" {
|
||||||
}
|
}
|
||||||
|
|
||||||
function "platforms" {
|
function "platforms" {
|
||||||
params = [USE_GLIBC]
|
params = []
|
||||||
result = 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"])
|
result = ["linux/amd64", "linux/386", "linux/arm64", "linux/arm", "linux/ppc64le", "linux/s390x", "darwin/amd64", "darwin/arm64", "windows/amd64"]
|
||||||
}
|
}
|
||||||
|
|
||||||
function "glen" {
|
function "glen" {
|
||||||
|
@ -51,7 +51,7 @@ function "glen" {
|
||||||
}
|
}
|
||||||
|
|
||||||
target "_all_platforms" {
|
target "_all_platforms" {
|
||||||
platforms = slice(platforms(USE_GLIBC), GROUP_INDEX*glen(platforms(USE_GLIBC), GROUP_TOTAL),min(length(platforms(USE_GLIBC)), (GROUP_INDEX+1)*glen(platforms(USE_GLIBC), GROUP_TOTAL)))
|
platforms = slice(platforms(), GROUP_INDEX*glen(platforms(), GROUP_TOTAL),min(length(platforms()), (GROUP_INDEX+1)*glen(platforms(), GROUP_TOTAL)))
|
||||||
}
|
}
|
||||||
|
|
||||||
target "cross" {
|
target "cross" {
|
||||||
|
|
Loading…
Reference in New Issue