diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 1e6634b4..c6393230 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -23,7 +23,7 @@ jobs: echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_OUTPUT # **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. **** COMPOSE_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||') - DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||') + DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^docker-||' | sed 's|^v||') MOD_VERSION="${DOCKER_RELEASE}-${COMPOSE_RELEASE}" echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT outputs: diff --git a/Dockerfile b/Dockerfile index da6f85c8..6289c94c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 ## Buildstage ## -FROM ghcr.io/linuxserver/baseimage-alpine:3.21 as buildstage +FROM ghcr.io/linuxserver/baseimage-alpine:3.22 AS buildstage ARG MOD_VERSION @@ -10,6 +10,7 @@ RUN \ if [ -z "${MOD_VERSION+x}" ]; then \ DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" \ | awk '/tag_name/{print $4;exit}' FS='[""]' \ + | sed 's|^docker-||' \ | sed 's|^v||'); \ COMPOSE_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \ | awk '/tag_name/{print $4;exit}' FS='[""]' \