From a7fbb1a6e55b7df90b0a55630057f738a2953e32 Mon Sep 17 00:00:00 2001 From: Carl Danley Date: Fri, 18 Nov 2022 04:11:56 -0500 Subject: [PATCH] Cleanup docker container labels --- .drone.yml | 17 +++++++++-------- Dockerfile | 2 ++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index a7410d2..f7da15e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,14 +45,15 @@ steps: build_args: - COMMIT_SHA=${DRONE_COMMIT_SHA} - COMMIT_AUTHOR_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL} - - --label=org.opencontainers.image.created=${DRONE_BUILD_CREATED} - - --label=org.opencontainers.image.name=${DRONE_REPO_NAME} - - --label=org.opencontainers.image.revision=${DRONE_COMMIT_SHA} - - --label=org.opencontainers.image.version=${DRONE_TAG} - - --label=org.opencontainers.image.source=${DRONE_REPO_LINK} - - --label=org.opencontainers.image.licenses=MIT - - --label=VERSION=${DRONE_TAG} - - --platform=linux/amd64 + platform: linux/amd64 + custom_labels: + - org.opencontainers.image.created=${DRONE_BUILD_CREATED} + - org.opencontainers.image.name=${DRONE_REPO_NAME} + - org.opencontainers.image.revision=${DRONE_COMMIT_SHA} + - org.opencontainers.image.version=${DRONE_TAG} + - org.opencontainers.image.source=${DRONE_REPO_LINK} + - org.opencontainers.image.licenses=MIT + - VERSION=${DRONE_TAG} when: ref: - refs/tags/* diff --git a/Dockerfile b/Dockerfile index 1a91a19..a2158eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM alpine +LABEL org.opencontainers.image.source https://github.com/carldanley/ha-fpp-mqtt + RUN apk upgrade --no-cache \ && apk --no-cache add \ tzdata zip ca-certificates