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