Skip to content

Commit b89f41c

Browse files
enhance: LABEL docker builds (#927)
1 parent 4fa74ce commit b89f41c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ package-zip: extract-licenses
6666
build-docker-multiarch: require-version
6767
docker buildx build --sbom=true --provenance=true \
6868
$(if $(DOCKER_BUILD_PUSH),--push) \
69+
--label org.opencontainers.image.revision=$(shell git rev-parse HEAD) \
70+
--label org.opencontainers.image.version=$(VERSION) \
71+
--label org.opencontainers.image.created=$(shell date -u +%Y-%m-%dT%H:%M:%SZ) \
6972
-t gotify/server:latest \
7073
-t gotify/server:${VERSION} \
7174
-t gotify/server:$(shell echo $(VERSION) | cut -d '.' -f -2) \

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ RUN cd /src/gotify && \
5454

5555
FROM debian:${DEBIAN}
5656

57+
LABEL org.opencontainers.image.documentation=https://gotify.net/
58+
LABEL org.opencontainers.image.source=https://github.com/gotify/server
59+
5760
# Build-time configurables
5861
ARG GOTIFY_SERVER_EXPOSE=80
5962
ENV GOTIFY_SERVER_PORT=$GOTIFY_SERVER_EXPOSE

0 commit comments

Comments
 (0)