Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerhub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG REMAGE_BASE_FLAVOR="latest"
ARG REMAGE_BASE_FLAVOR="stable"

FROM legendexp/remage-base:$REMAGE_BASE_FLAVOR

Expand Down
24 changes: 24 additions & 0 deletions .dockerhub/hooks/build
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/docs/_doxygen
/docs/api
/docs/extra
build
/build
install
.local
.vscode
Expand Down
Loading