From b9830f61b142322312b89fd448eeb6d537a87a78 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:58:26 +0200 Subject: [PATCH] fix(docker): update deprecated LABEL format (#1615) --- Dockerfile | 2 +- ci.Dockerfile | 10 ++++++---- goreleaser.Dockerfile | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 115a524..92363fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ RUN go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${REVISIO # build runner FROM alpine:latest -LABEL org.opencontainers.image.source = "https://github.com/autobrr/autobrr" +LABEL org.opencontainers.image.source="https://github.com/autobrr/autobrr" ENV HOME="/config" \ XDG_CONFIG_HOME="/config" \ diff --git a/ci.Dockerfile b/ci.Dockerfile index 0401cdf..ecb0848 100644 --- a/ci.Dockerfile +++ b/ci.Dockerfile @@ -15,7 +15,9 @@ COPY . ./ ARG VERSION=dev ARG REVISION=dev ARG BUILDTIME -ARG TARGETOS TARGETARCH TARGETVARIANT +ARG TARGETOS +ARG TARGETARCH +ARG TARGETVARIANT RUN --network=none --mount=target=. \ export GOOS=$TARGETOS; \ @@ -30,9 +32,9 @@ go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${REVISION} - # build runner FROM alpine:latest AS runner -LABEL org.opencontainers.image.source = "https://github.com/autobrr/autobrr" -LABEL org.opencontainers.image.licenses = "GPL-2.0-or-later" -LABEL org.opencontainers.image.base.name = "alpine:latest" +LABEL org.opencontainers.image.source="https://github.com/autobrr/autobrr" +LABEL org.opencontainers.image.licenses="GPL-2.0-or-later" +LABEL org.opencontainers.image.base.name="alpine:latest" ENV HOME="/config" \ XDG_CONFIG_HOME="/config" \ diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index 9fcf676..78a0bf3 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -1,6 +1,6 @@ FROM alpine:latest -LABEL org.opencontainers.image.source = "https://github.com/autobrr/autobrr" +LABEL org.opencontainers.image.source="https://github.com/autobrr/autobrr" ENV HOME="/config" \ XDG_CONFIG_HOME="/config" \