fix: Add more OCI Image Labels (#25074)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
alorente
2024-12-05 20:12:23 +01:00
committed by GitHub
co-authored by Koen Kanters
parent 51f364a1d5
commit b370b80dfb
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -82,6 +82,8 @@ jobs:
push: true
build-args: |
COMMIT=${{ github.sha }}
VERSION=dev
DATE=${{ github.event.repository.updated_at }}
- name: release - Docker build and push
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
@@ -95,6 +97,8 @@ jobs:
push: true
build-args: |
COMMIT=${{ github.sha }}
VERSION=${{ github.ref_name }}
DATE=${{ github.event.repository.updated_at }}
- name: 'release: Publish to npm'
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
+5
View File
@@ -15,12 +15,17 @@ RUN apk add make gcc g++ python3 linux-headers npm && \
# Release
FROM base AS release
ARG DATE
ARG VERSION
LABEL org.opencontainers.image.authors="Koen Kanters"
LABEL org.opencontainers.image.title="zigbee2mqtt"
LABEL org.opencontainers.image.description="Zigbee to MQTT bridge using Zigbee-herdsman"
LABEL org.opencontainers.image.url="https://github.com/Koenkk/zigbee2mqtt"
LABEL org.opencontainers.image.documentation="https://www.zigbee2mqtt.io/"
LABEL org.opencontainers.image.source="https://github.com/Koenkk/zigbee2mqtt"
LABEL org.opencontainers.image.licenses="GPL-3.0"
LABEL org.opencontainers.image.created=${DATE}
LABEL org.opencontainers.image.version=${VERSION}
COPY --from=deps /app/node_modules ./node_modules
COPY dist ./dist