From 4081d9feaad0b5d7b302ce8dcc2281aee754a3e0 Mon Sep 17 00:00:00 2001 From: Yumechi Date: Thu, 5 Mar 2026 08:09:15 +0800 Subject: [PATCH 1/2] enhance: LABEL docker builds --- Makefile | 3 +++ docker/Dockerfile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4ebe0903..30542ad4 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,9 @@ package-zip: extract-licenses build-docker-multiarch: require-version docker buildx build --sbom=true --provenance=true \ $(if $(DOCKER_BUILD_PUSH),--push) \ + --label org.opencontainers.image.revision=$(shell git rev-parse HEAD) \ + --label org.opencontainers.image.version=$(VERSION) \ + --label org.opencontainers.image.created=$(shell date -u +%Y-%m-%dT%H:%M:%SZ) \ -t gotify/server:latest \ -t gotify/server:${VERSION} \ -t gotify/server:$(shell echo $(VERSION) | cut -d '.' -f -2) \ diff --git a/docker/Dockerfile b/docker/Dockerfile index 79b5ad8c..dae5b2a1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -54,6 +54,9 @@ RUN cd /src/gotify && \ FROM debian:${DEBIAN} +LABEL org.opencontainers.image.documentation https://gotify.net/ +LABEL org.opencontainers.image.source https://github.com/gotify/server + # Build-time configurables ARG GOTIFY_SERVER_EXPOSE=80 ENV GOTIFY_SERVER_PORT=$GOTIFY_SERVER_EXPOSE From 418df6e21aeb6b412674ded4e70e8149c67ae621 Mon Sep 17 00:00:00 2001 From: Yumechi Date: Sat, 7 Mar 2026 14:55:36 +0800 Subject: [PATCH 2/2] fixup! enhance: LABEL docker builds --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index dae5b2a1..4c1dee11 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -54,8 +54,8 @@ RUN cd /src/gotify && \ FROM debian:${DEBIAN} -LABEL org.opencontainers.image.documentation https://gotify.net/ -LABEL org.opencontainers.image.source https://github.com/gotify/server +LABEL org.opencontainers.image.documentation=https://gotify.net/ +LABEL org.opencontainers.image.source=https://github.com/gotify/server # Build-time configurables ARG GOTIFY_SERVER_EXPOSE=80