Skip to content

Commit

Permalink
Cleanup docker container labels
Browse files Browse the repository at this point in the history
  • Loading branch information
carldanley committed Nov 18, 2022
1 parent b0328cc commit a7fbb1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a7fbb1a

Please sign in to comment.