From 01d4a0029ac50d5f9d079892334f599a6cf0d545 Mon Sep 17 00:00:00 2001 From: crocodilestick <105450872+crocodilestick@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:15:16 +0000 Subject: [PATCH] Made it so all future release images will be multiplatform (linux/amd64 & linux/arm64) and build automatically from the repo on the publishing of a new release --- .github/workflows/dockerhub-build-push-on-release.yml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub-build-push-on-release.yml b/.github/workflows/dockerhub-build-push-on-release.yml index 8b6db73..1161ebe 100644 --- a/.github/workflows/dockerhub-build-push-on-release.yml +++ b/.github/workflows/dockerhub-build-push-on-release.yml @@ -28,6 +28,9 @@ jobs: context: . file: ./Dockerfile push: true + build-args: | + BUILD_DATE=${{ github.event.repository.updated_at }} + VERSION=${{ github.event.release.tag_name }} tags: | ${{ secrets.DOCKERHUB_USERNAME }}/calibre-web-automated:${{ github.event.release.tag_name }} ${{ secrets.DOCKERHUB_USERNAME }}/calibre-web-automated:latest diff --git a/Dockerfile b/Dockerfile index 971b69c..0225526 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,9 +23,9 @@ ARG VERSION ARG CALIBREWEB_RELEASE=0.6.23 ARG LSCW_RELEASE=0.6.23-ls291 LABEL build_version="Version:- ${VERSION}" -LABEL build_type="localbuild" LABEL build_date="${BUILD_DATE}" LABEL CW-Stock-version="${CALIBREWEB_RELEASE}" +LABEL LSCW_Image_Release="${LSCW_RELEASE}" LABEL maintainer="CrocodileStick" # Copy local files into the container