mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
limit archs
This commit is contained in:
parent
99212edb20
commit
3cd40defd6
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ steps:
|
||||||
image: woodpeckerci/plugin-docker-buildx:3.2.1
|
image: woodpeckerci/plugin-docker-buildx:3.2.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platforms: linux/amd64,arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
dry-run: true
|
dry-run: true
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -15,7 +15,7 @@ ARG TARGETOS TARGETARCH
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
--mount=type=cache,target=/go/pkg \
|
--mount=type=cache,target=/go/pkg \
|
||||||
GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=1 \
|
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,
|
# Use a scratch image as the base image for the final container,
|
||||||
# which will contain only the built binary and the CA certificates
|
# which will contain only the built binary and the CA certificates
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue