From 8082b9793d8e75cb415ceb85156862713ac351f7 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 16 May 2020 14:27:43 +0200 Subject: [PATCH] :hammer: Implement OCI image specification on labels --- base/Dockerfile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/base/Dockerfile b/base/Dockerfile index 4e9bf9c..49111a2 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -139,16 +139,20 @@ ARG BUILD_VERSION # Labels LABEL \ + io.hass.name="Addon Python base for ${BUILD_ARCH}" \ + io.hass.description="Home Assistant Community Add-on: ${BUILD_ARCH} Python base image" \ io.hass.arch="${BUILD_ARCH}" \ io.hass.type="base" \ io.hass.version=${BUILD_VERSION} \ maintainer="Franck Nijhof " \ - org.label-schema.description="Home Assistant Community Add-on: ${BUILD_ARCH} Python Base image" \ - org.label-schema.build-date=${BUILD_DATE} \ - org.label-schema.name="Add-on Python base for ${BUILD_ARCH}" \ - org.label-schema.schema-version="1.0" \ - org.label-schema.url="https://addons.community" \ - org.label-schema.usage="https://github.com/hassio-addons/addon-base-python/blob/master/README.md" \ - org.label-schema.vcs-ref=${REF} \ - org.label-schema.vcs-url="https://github.com/hassio-addons/addon-base-python" \ - org.label-schema.vendor="Home Assistant Community Add-ons" + org.opencontainers.image.title="Addon Python base for ${BUILD_ARCH}" \ + org.opencontainers.image.description="Home Assistant Community Add-on: ${BUILD_ARCH} Python base image" \ + org.opencontainers.image.vendor="Home Assistant Community Add-ons" \ + org.opencontainers.image.authors="Franck Nijhof " \ + org.opencontainers.image.licenses="MIT" \ + org.opencontainers.image.url="https://addons.community" \ + org.opencontainers.image.source="https://github.com/hassio-addons/addon-base-python" \ + org.opencontainers.image.documentation="https://github.com/hassio-addons/addon-base-python/blob/master/README.md" \ + org.opencontainers.image.created=${BUILD_DATE} \ + org.opencontainers.image.revision=${BUILD_REF} \ + org.opencontainers.image.version=${BUILD_VERSION}