From 735b7f68fe89e2a6218f16ce12374888cc8750fe Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:28:26 +0100 Subject: [PATCH] build freebsd Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- Dockerfile | 2 ++ docker-bake.hcl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index c23516b8..922dda55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,6 +77,7 @@ RUN --mount=type=bind,target=. \ set -e xx-go --wrap 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 EOT @@ -95,6 +96,7 @@ FROM scratch AS binaries-unix COPY --link --from=buildx-build /usr/bin/docker-buildx /buildx FROM binaries-unix AS binaries-darwin +FROM binaries-unix AS binaries-freebsd FROM binaries-unix AS binaries-linux FROM scratch AS binaries-windows diff --git a/docker-bake.hcl b/docker-bake.hcl index fe6a78a5..0da1fe09 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -41,6 +41,8 @@ target "lint" { platforms = GOLANGCI_LINT_MULTIPLATFORM != "" ? [ "darwin/amd64", "darwin/arm64", + "freebsd/amd64", + "freebsd/arm64", "linux/amd64", "linux/arm64", "linux/s390x", @@ -154,6 +156,8 @@ target "binaries-cross" { platforms = [ "darwin/amd64", "darwin/arm64", + "freebsd/amd64", + "freebsd/arm64", "linux/amd64", "linux/arm/v6", "linux/arm/v7",