This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -48,6 +48,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/amd64"
|
platform: "linux/amd64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=amd64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
@@ -64,6 +67,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/arm64"
|
platform: "linux/arm64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=arm64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
@@ -96,6 +102,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/amd64"
|
platform: "linux/amd64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=amd64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
@@ -115,6 +124,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/arm64"
|
platform: "linux/arm64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=arm64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
@@ -153,6 +165,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/amd64"
|
platform: "linux/amd64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=amd64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
@@ -169,6 +184,9 @@ steps:
|
|||||||
repo: "registry.coadcorp.com/nathan/invertergui"
|
repo: "registry.coadcorp.com/nathan/invertergui"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platform: "linux/arm64"
|
platform: "linux/arm64"
|
||||||
|
build_args:
|
||||||
|
- TARGETOS=linux
|
||||||
|
- TARGETARCH=arm64
|
||||||
username: nathan
|
username: nathan
|
||||||
password:
|
password:
|
||||||
from_secret: registry_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 TARGETOS=linux
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH=amd64
|
||||||
ARG TARGETVARIANT
|
ARG TARGETVARIANT
|
||||||
|
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
COPY . /build/
|
COPY . /build/
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN set -eux; \
|
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
|
CGO_ENABLED=0 GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" GOARM="${GOARM}" go build -o invertergui ./cmd/invertergui
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|||||||
Reference in New Issue
Block a user