From f44d4c4d92e4fe2b7725bc84bfa637ab33d88262 Mon Sep 17 00:00:00 2001 From: TheCaptain989 Date: Sun, 18 Aug 2024 10:00:04 -0500 Subject: [PATCH] Pre for PR --- .github/workflows/BuildImage.yml | 2 +- Dockerfile | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index f4118ea..34940bf 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -20,7 +20,7 @@ jobs: echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT # **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. **** - MOD_VERSION=${GITHUB_SHA:0:7} + MOD_VERSION="2.4.0" echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT outputs: GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }} diff --git a/Dockerfile b/Dockerfile index 9e4f4e2..bdcd8c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ ## Buildstage ## FROM ghcr.io/linuxserver/baseimage-alpine:3.20 as buildstage - ARG MOD_VERSION # copy local files @@ -17,11 +16,14 @@ RUN \ ## Single layer deployed image ## FROM scratch +ARG MOD_VERSION -LABEL org.opencontainers.image.source=https://github.com/TheCaptain989/lidarr-flac2mp3 +LABEL org.opencontainers.image.title=lidarr-flac2mp3 LABEL org.opencontainers.image.description="A Docker Mod to Lidarr to automatically convert FLAC files to MP3s, or other format" -LABEL org.opencontainers.image.licenses=GPL-3.0-only +LABEL org.opencontainers.image.version="${MOD_VERSION}" +LABEL org.opencontainers.image.source="https://github.com/TheCaptain989/lidarr-flac2mp3" LABEL org.opencontainers.image.authors="TheCaptain989 " +LABEL org.opencontainers.image.licenses=GPL-3.0-only # Add files from buildstage COPY --from=buildstage /root-layer/ /