From e78619f5e15652bd0b3b2fffdc053730c712b6f5 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Thu, 9 May 2024 13:00:42 +0100 Subject: [PATCH] Update build to include openbsd and armv7 --- Dockerfile | 3 ++- scripts/build-and-ship/main.go | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17156a2..2d6126d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM alpine:3.19 ARG TARGETOS ARG TARGETARCH +ARG TARGETVARIANT WORKDIR /app -COPY build/glance-$TARGETOS-$TARGETARCH /app/glance +COPY build/glance-$TARGETOS-$TARGETARCH${TARGETVARIANT} /app/glance EXPOSE 8080/tcp ENTRYPOINT ["/app/glance"] diff --git a/scripts/build-and-ship/main.go b/scripts/build-and-ship/main.go index 2349947..b371a80 100644 --- a/scripts/build-and-ship/main.go +++ b/scripts/build-and-ship/main.go @@ -67,6 +67,14 @@ var buildTargets = []buildTarget{ arch: "arm", armV: 7, }, + { + os: "openbsd", + arch: "amd64", + }, + { + os: "openbsd", + arch: "386", + }, } func main() { @@ -113,7 +121,7 @@ func main() { output, err := exec.Command( "sudo", "docker", "build", - "--platform=linux/arm64,linux/amd64", + "--platform=linux/amd64,linux/arm64,linux/arm/v7", "-t", versionTag, "-t", latestTag, ".",