chore: Using OCI default labels

see
https://github.com/opencontainers/image-spec/blob/main/annotations.md
This commit is contained in:
Martin Reinhardt 2023-10-31 08:59:54 +01:00 committed by Knut Ahlers
parent 21f295cfc1
commit 565c7b5bc0
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5
2 changed files with 20 additions and 2 deletions

View File

@ -25,7 +25,16 @@ RUN set -ex \
FROM alpine:latest
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
ARG BUILD_DATE
ARG APP_VERSION
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version=$APP_VERSION \
org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \
org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \
org.opencontainers.image.source='https://github.com/Luzifer/ots' \
org.opencontainers.image.licenses='Apache-2.0'
RUN set -ex \
&& apk --no-cache add \

View File

@ -25,7 +25,16 @@ RUN set -ex \
FROM scratch
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
ARG BUILD_DATE
ARG APP_VERSION
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version $APP_VERSION \
org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \
org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \
org.opencontainers.image.source='https://github.com/Luzifer/ots' \
org.opencontainers.image.licenses='Apache-2.0'
COPY --from=builder /go/bin/ots /usr/local/bin/ots