From 3cd40defd687b29a44972137edd427eb7a3f9407 Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 29 Apr 2024 00:10:34 +0200 Subject: [PATCH] limit archs --- .woodpecker/build.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 0e24ac2..f2fd002 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -32,7 +32,7 @@ steps: image: woodpeckerci/plugin-docker-buildx:3.2.1 settings: dockerfile: Dockerfile - platforms: linux/amd64,arm64 + platforms: linux/amd64,linux/arm64 dry-run: true tags: latest when: diff --git a/Dockerfile b/Dockerfile index 33fb752..917df28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ ARG TARGETOS TARGETARCH RUN --mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/go/pkg \ GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=1 \ - xgo -x -v -tags='sqlite sqlite_unlock_notify netgo' -ldflags='-s -w -extldflags "-static" -linkmode external' -out pages . + xgo -x -v --targets=linux/arm64,linux/amd64 -tags='sqlite sqlite_unlock_notify netgo' -ldflags='-s -w -extldflags "-static" -linkmode external' -out pages . # Use a scratch image as the base image for the final container, # which will contain only the built binary and the CA certificates