From a9c038d66baba794918846adab89c01a33c226bb Mon Sep 17 00:00:00 2001 From: Luigi Pertoldi Date: Fri, 26 Dec 2025 10:40:00 +0100 Subject: [PATCH 1/3] Update workflow to test stable container version --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index caec41ec..68bedd22 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,6 @@ jobs: strategy: fail-fast: false matrix: - # guideline: only test on latest patch releases (and maybe previous one) container_version: - latest - stable @@ -60,7 +59,7 @@ jobs: fi - name: Compare checked-in doc dump with current result - if: ${{ matrix.container_version == 'latest' }} + if: ${{ matrix.container_version == 'stable' }} run: | cd build cp ../docs/rmg-commands.md ../docs/rmg-commands.md.bak From 76e83b21097ce5c6e1169a3deff1b5b38bced715 Mon Sep 17 00:00:00 2001 From: Luigi Pertoldi Date: Fri, 26 Dec 2025 11:10:06 +0100 Subject: [PATCH 2/3] fix: dockerhub build hook was removed by mistake? --- .dockerhub/hooks/build | 24 ++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 .dockerhub/hooks/build diff --git a/.dockerhub/hooks/build b/.dockerhub/hooks/build new file mode 100755 index 00000000..1a4cb52c --- /dev/null +++ b/.dockerhub/hooks/build @@ -0,0 +1,24 @@ +#!/bin/bash +# shellcheck disable=SC2001 + +# for the dev remage image let's use the latest base image +if [[ "$DOCKER_TAG" == "dev" ]]; then + docker build \ + --build-arg REMAGE_BASE_FLAVOR="latest" \ + --build-arg REMAGE_VERSION="dev" \ + -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" . + +# check if tag name terminates with "-slim" and use the slim base image +elif [[ $(echo "$DOCKER_TAG" | sed 's/.*-//') == "slim" ]]; then + _version=$(echo "$DOCKER_TAG" | sed 's/-[^-]*$//') + docker build \ + --build-arg REMAGE_BASE_FLAVOR="slim" \ + --build-arg REMAGE_VERSION="$_version" \ + -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" . + +else # use stable base image for all tagged versions + docker build \ + --build-arg REMAGE_BASE_FLAVOR="stable" \ + --build-arg REMAGE_VERSION="$DOCKER_TAG" \ + -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" . +fi diff --git a/.gitignore b/.gitignore index cfe4a2ae..83bf498a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ /docs/_doxygen /docs/api /docs/extra -build +/build install .local .vscode From 32abef89745c29f46e8077e02c8eae2c1490cdc8 Mon Sep 17 00:00:00 2001 From: Luigi Pertoldi Date: Fri, 26 Dec 2025 11:12:37 +0100 Subject: [PATCH 3/3] dockerfile: update remage base flavor to stable --- .dockerhub/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dockerhub/Dockerfile b/.dockerhub/Dockerfile index 15d67063..a694f8b3 100644 --- a/.dockerhub/Dockerfile +++ b/.dockerhub/Dockerfile @@ -1,4 +1,4 @@ -ARG REMAGE_BASE_FLAVOR="latest" +ARG REMAGE_BASE_FLAVOR="stable" FROM legendexp/remage-base:$REMAGE_BASE_FLAVOR