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..4c1dee11 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