Skip to content

Commit

Permalink
Merge pull request #7 from mdegat01/dockerfile-labels
Browse files Browse the repository at this point in the history
Added labels to dockerfile
  • Loading branch information
mdegat01 authored Mar 22, 2021
2 parents 4fec980 + 1363061 commit a4ba472
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion promtail/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,33 @@ RUN set -eux; \
COPY rootfs /
RUN set -eux; \
mkdir -p /data/promtail;
WORKDIR /data/promtail
WORKDIR /data/promtail

# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION

# Labels
LABEL \
io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="mdegat01" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="mdegat01's Home Assistant Add-ons" \
org.opencontainers.image.authors="mdegat01" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://github.com/mdegat01/hassio-addons" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}

0 comments on commit a4ba472

Please sign in to comment.