mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 00:47:42 +08:00
commit
83dd969dc1
@ -77,6 +77,7 @@ RUN --mount=type=bind,target=. \
|
|||||||
set -e
|
set -e
|
||||||
xx-go --wrap
|
xx-go --wrap
|
||||||
DESTDIR=/usr/bin VERSION=$(cat /buildx-version/version) REVISION=$(cat /buildx-version/revision) GO_EXTRA_LDFLAGS="-s -w" ./hack/build
|
DESTDIR=/usr/bin VERSION=$(cat /buildx-version/version) REVISION=$(cat /buildx-version/revision) GO_EXTRA_LDFLAGS="-s -w" ./hack/build
|
||||||
|
file /usr/bin/docker-buildx
|
||||||
xx-verify --static /usr/bin/docker-buildx
|
xx-verify --static /usr/bin/docker-buildx
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
@ -95,6 +96,7 @@ FROM scratch AS binaries-unix
|
|||||||
COPY --link --from=buildx-build /usr/bin/docker-buildx /buildx
|
COPY --link --from=buildx-build /usr/bin/docker-buildx /buildx
|
||||||
|
|
||||||
FROM binaries-unix AS binaries-darwin
|
FROM binaries-unix AS binaries-darwin
|
||||||
|
FROM binaries-unix AS binaries-freebsd
|
||||||
FROM binaries-unix AS binaries-linux
|
FROM binaries-unix AS binaries-linux
|
||||||
|
|
||||||
FROM scratch AS binaries-windows
|
FROM scratch AS binaries-windows
|
||||||
|
@ -41,6 +41,8 @@ target "lint" {
|
|||||||
platforms = GOLANGCI_LINT_MULTIPLATFORM != "" ? [
|
platforms = GOLANGCI_LINT_MULTIPLATFORM != "" ? [
|
||||||
"darwin/amd64",
|
"darwin/amd64",
|
||||||
"darwin/arm64",
|
"darwin/arm64",
|
||||||
|
"freebsd/amd64",
|
||||||
|
"freebsd/arm64",
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
"linux/arm64",
|
"linux/arm64",
|
||||||
"linux/s390x",
|
"linux/s390x",
|
||||||
@ -154,6 +156,8 @@ target "binaries-cross" {
|
|||||||
platforms = [
|
platforms = [
|
||||||
"darwin/amd64",
|
"darwin/amd64",
|
||||||
"darwin/arm64",
|
"darwin/arm64",
|
||||||
|
"freebsd/amd64",
|
||||||
|
"freebsd/arm64",
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
"linux/arm/v6",
|
"linux/arm/v6",
|
||||||
"linux/arm/v7",
|
"linux/arm/v7",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user