try again
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-19 13:32:04 +11:00
parent ff0c806efa
commit 22a42bfef0
2 changed files with 22 additions and 3 deletions

View File

@@ -1,14 +1,15 @@
FROM --platform=$BUILDPLATFORM golang:1.26-alpine as builder
FROM golang:1.26-alpine as builder
ARG TARGETOS=linux
ARG TARGETARCH
ARG TARGETARCH=amd64
ARG TARGETVARIANT
RUN mkdir /build
COPY . /build/
WORKDIR /build
RUN set -eux; \
GOARM="${TARGETVARIANT#v}"; \
GOARM=""; \
if [ "${TARGETARCH}" = "arm" ] && [ -n "${TARGETVARIANT:-}" ]; then GOARM="${TARGETVARIANT#v}"; fi; \
CGO_ENABLED=0 GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" GOARM="${GOARM}" go build -o invertergui ./cmd/invertergui
FROM scratch