This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -48,6 +48,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/amd64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=amd64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
@@ -64,6 +67,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/arm64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=arm64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
@@ -96,6 +102,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/amd64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=amd64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
@@ -115,6 +124,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/arm64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=arm64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
@@ -153,6 +165,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/amd64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=amd64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
@@ -169,6 +184,9 @@ steps:
|
||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||
dockerfile: Dockerfile
|
||||
platform: "linux/arm64"
|
||||
build_args:
|
||||
- TARGETOS=linux
|
||||
- TARGETARCH=arm64
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user