build freebsd

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-11-01 14:28:26 +01:00
parent bcac44f658
commit 735b7f68fe
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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",