trget aach
All checks were successful
Go-tags / build (push) Successful in 2m11s

This commit is contained in:
maximo tejeda 2024-11-15 11:56:03 -04:00
parent 302cc8d7d6
commit 021dfaf045

View File

@ -1,6 +1,6 @@
FROM golang:alpine AS builder
ARG BUILDARCH
ARG TARGETARCH
ARG version=not-set
ARG SHORTSHA=not-set
WORKDIR /app
@ -9,7 +9,7 @@ COPY . .
RUN go build -o bin/ddns \
-ldflags "-X main.Shortsha=${SHORTSHA} \
-X main.Version=${version} \
-X main.Aarch=${BUILDARCH}" ./cmd
-X main.Aarch=${TARGETARCH}" ./cmd
FROM alpine AS runner
COPY --from=builder /app/bin/ddns /usr/bin/