containerfile: add proper OCI annotations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-10-05 16:07:22 +02:00
parent 4039e34668
commit 6d2d885fe2
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -6,10 +6,20 @@ ARG VCS_REF
LABEL description="Container image based on fedora-minimal, hourly updated, serving as a base image for other projects" LABEL description="Container image based on fedora-minimal, hourly updated, serving as a base image for other projects"
# as per https://github.com/opencontainers/image-spec/blob/main/annotations.md,
# keep Label Schema labels for backward compatibility.
LABEL org.label-schema.build-date=$BUILD_DATE \ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://git.dotya.ml/wanderer-containers/fedora-minimal.git" \ org.label-schema.vcs-url="https://git.dotya.ml/wanderer-containers/fedora-minimal.git" \
org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=MIT org.label-schema.license=MIT \
org.opencontainers.image.description="fedora-minimal" \
org.opencontainers.image.description="Container image based on fedora-minimal, hourly updated, serving as a base image for other projects" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.authors=wanderer \
org.opencontainers.image.url="https://git.dotya.ml/wanderer-containers/fedora-minimal.git" \
org.opencontainers.image.source="https://git.dotya.ml/wanderer-containers/fedora-minimal.git" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.licenses=MIT
# DL3041 warning: Specify version with `dnf install -y <package>-<version>`. # DL3041 warning: Specify version with `dnf install -y <package>-<version>`.
# hadolint ignore=DL3041 # hadolint ignore=DL3041