Fix arm64 builds
This commit is contained in:
@@ -65,6 +65,9 @@ local Publish(go, alpine, os, arch, trigger, platforms, extra) = {
|
|||||||
name: "docker",
|
name: "docker",
|
||||||
image: "plugins/buildx",
|
image: "plugins/buildx",
|
||||||
privileged: true,
|
privileged: true,
|
||||||
|
environment: {
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
|
},
|
||||||
settings: {
|
settings: {
|
||||||
registry: "git.gammaspectra.live",
|
registry: "git.gammaspectra.live",
|
||||||
repo: "git.gammaspectra.live/git/go-away",
|
repo: "git.gammaspectra.live/git/go-away",
|
||||||
|
14
.drone.yml
14
.drone.yml
@@ -165,7 +165,9 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
- image: plugins/buildx
|
- environment:
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
|
image: plugins/buildx
|
||||||
name: docker
|
name: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@@ -199,7 +201,9 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
- image: plugins/buildx
|
- environment:
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
|
image: plugins/buildx
|
||||||
name: docker
|
name: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@@ -233,7 +237,9 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
- image: plugins/buildx
|
- environment:
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
|
image: plugins/buildx
|
||||||
name: docker
|
name: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@@ -262,6 +268,6 @@ trigger:
|
|||||||
type: docker
|
type: docker
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 90e6da0206cabda47b8279b4704e95f68f5a36ff04d07284ff9ef203fc96a911
|
hmac: 3cbd114d368c7bd348105921d85c703db1c1bc46de79f00daabbca23ffac6050
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
ARG from_builder=golang:1.24-alpine3.21
|
ARG from_builder=golang:1.24-alpine3.21
|
||||||
ARG from=alpine:3.21
|
ARG from=alpine:3.21
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
|
||||||
ARG TARGETARCH
|
|
||||||
ARG TARGETOS
|
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM ${from_builder} AS build
|
FROM --platform=$BUILDPLATFORM ${from_builder} AS build
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
ARG TARGETOS
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
git \
|
git \
|
||||||
|
Reference in New Issue
Block a user