From 0e5e2176de16305d9ef07f1c1177d67329554346 Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:48:12 +0200 Subject: [PATCH 1/4] missing GM.pm in image v4 Fixes #258 --- .github/workflows/build.yml | 4 +-- Dockerfile-bullseye | 61 ++++++++++++++++++----------------- Dockerfile-threaded-bullseye | 32 +++++++++--------- scripts/excluded_packages.txt | 1 - 4 files changed, 50 insertions(+), 48 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4feba5c..71b5c3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -453,7 +453,7 @@ jobs: load: false file: ./Dockerfile${{ matrix.dockerfile }} platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386 - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'publishImage') }} target: with-fhem-extended-python-nodejs cache-from: | type=gha,scope=base-cpan_linux/386-${{ matrix.dockerfile }} @@ -500,7 +500,7 @@ jobs: load: false file: ./Dockerfile${{ matrix.dockerfile }} platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64,386 - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'publishImage') }} target: with-fhem cache-from: | type=gha,scope=base_linux/arm64-${{ matrix.dockerfile }} diff --git a/Dockerfile-bullseye b/Dockerfile-bullseye index 3b40b26..6836419 100644 --- a/Dockerfile-bullseye +++ b/Dockerfile-bullseye @@ -2,7 +2,7 @@ # # base layer with perl and some general preparations # -FROM perl:5.36.3-slim-bullseye as base +FROM perl:5.36.3-slim-bullseye AS base ARG TARGETPLATFORM @@ -46,7 +46,7 @@ EOF # Install all CPAN Modules, needed from FHEM and standard modules # -FROM perl:5.36.3-bullseye as build-cpan +FROM perl:5.36.3-bullseye AS build-cpan COPY cpanfile /usr/src/app/core/cpanfile @@ -56,6 +56,7 @@ RUN < /image_info @@ -245,7 +246,7 @@ CMD [ "start" ] # Add additional Perl and System layers # -FROM with-fhem as with-fhem-extended +FROM with-fhem AS with-fhem-extended ENV PERL5LIB=${PERL5LIB}:/usr/src/app/3rdparty/lib/perl5 @@ -279,7 +280,7 @@ COPY --from=build-cpan /usr/src/app/3rdparty/lib/perl5 /usr/src/app/3rdparty/lib # Add additional Python layer # -FROM with-fhem-extended as with-fhem-extended-python +FROM with-fhem-extended AS with-fhem-extended-python RUN < Date: Thu, 18 Jul 2024 23:22:52 +0200 Subject: [PATCH 2/4] fix[build]: fix condition for login action --- .github/workflows/prepare-docker/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prepare-docker/action.yml b/.github/workflows/prepare-docker/action.yml index 18537f2..0cba87f 100644 --- a/.github/workflows/prepare-docker/action.yml +++ b/.github/workflows/prepare-docker/action.yml @@ -38,14 +38,14 @@ runs: uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - if: github.event_name != 'pull_request' && inputs.DOCKER_HUB_USERNAME != null && inputs.DOCKER_HUB_ACCESS_TOKEN != null + if: (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'publishImage') ) && inputs.DOCKER_HUB_USERNAME != null && inputs.DOCKER_HUB_ACCESS_TOKEN != null uses: docker/login-action@v3 with: username: ${{ inputs.DOCKER_HUB_USERNAME }} password: ${{ inputs.DOCKER_HUB_ACCESS_TOKEN }} - name: Login to GitHub Container Registry - if: github.event_name != 'pull_request' && inputs.GHCR_OWNER != null && inputs.GHCR_ACCESS_TOKEN != null + if: (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'publishImage') ) && inputs.GHCR_OWNER != null && inputs.GHCR_ACCESS_TOKEN != null uses: docker/login-action@v3 with: registry: ghcr.io From 3d13ac3f48346d94f3b29976dbd6ce02aec98aff Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:48:55 +0200 Subject: [PATCH 3/4] fix[build]: install libgd3 Fixes #258 --- Dockerfile-bullseye | 1 + Dockerfile-threaded-bullseye | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile-bullseye b/Dockerfile-bullseye index 6836419..d2b0804 100644 --- a/Dockerfile-bullseye +++ b/Dockerfile-bullseye @@ -146,6 +146,7 @@ RUN < Date: Mon, 22 Jul 2024 22:25:17 +0200 Subject: [PATCH 4/4] fix{build]: Added librsvg2-2 package --- Dockerfile-bullseye | 1 + Dockerfile-threaded-bullseye | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile-bullseye b/Dockerfile-bullseye index d2b0804..4a8c730 100644 --- a/Dockerfile-bullseye +++ b/Dockerfile-bullseye @@ -147,6 +147,7 @@ RUN <