Fix arm64 builds

This commit is contained in:
WeebDataHoarder
2025-04-08 01:29:02 +02:00
parent 7be88ca6af
commit 04e102cb74
3 changed files with 16 additions and 7 deletions

View File

@@ -65,6 +65,9 @@ local Publish(go, alpine, os, arch, trigger, platforms, extra) = {
name: "docker",
image: "plugins/buildx",
privileged: true,
environment: {
DOCKER_BUILDKIT: "1"
},
settings: {
registry: "git.gammaspectra.live",
repo: "git.gammaspectra.live/git/go-away",

View File

@@ -165,7 +165,9 @@ platform:
arch: amd64
os: linux
steps:
- image: plugins/buildx
- environment:
DOCKER_BUILDKIT: "1"
image: plugins/buildx
name: docker
privileged: true
settings:
@@ -199,7 +201,9 @@ platform:
arch: amd64
os: linux
steps:
- image: plugins/buildx
- environment:
DOCKER_BUILDKIT: "1"
image: plugins/buildx
name: docker
privileged: true
settings:
@@ -233,7 +237,9 @@ platform:
arch: amd64
os: linux
steps:
- image: plugins/buildx
- environment:
DOCKER_BUILDKIT: "1"
image: plugins/buildx
name: docker
privileged: true
settings:
@@ -262,6 +268,6 @@ trigger:
type: docker
---
kind: signature
hmac: 90e6da0206cabda47b8279b4704e95f68f5a36ff04d07284ff9ef203fc96a911
hmac: 3cbd114d368c7bd348105921d85c703db1c1bc46de79f00daabbca23ffac6050
...

View File

@@ -1,13 +1,13 @@
ARG from_builder=golang:1.24-alpine3.21
ARG from=alpine:3.21
ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETOS
ARG BUILDPLATFORM
FROM --platform=$BUILDPLATFORM ${from_builder} AS build
ARG TARGETARCH
ARG TARGETOS
RUN apk update && apk add --no-cache \
bash \
git \