From 8df32d9251b4b7cb2f308ba3cf2acd636919063e Mon Sep 17 00:00:00 2001 From: Fronti Date: Sat, 19 Nov 2022 01:22:09 +0000 Subject: [PATCH 1/2] update versions filter --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 534adaa..6c37bad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN \ jq && \ DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json") && \ if [ -z ${DOTNET_VERSIONS+x} ]; then \ - DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \ + DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="active" or ."support-phase"=="maintenance") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \ fi && \ mkdir -p /root-layer/dotnet && \ echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \ From ad8dbe357b4db97ed772f9eb03b30387e467ecb0 Mon Sep 17 00:00:00 2001 From: Fronti Date: Sat, 19 Nov 2022 02:31:31 +0000 Subject: [PATCH 2/2] update filter in workflow --- .github/workflows/BuildImage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 7f578dc..fd6c7ce 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -17,7 +17,7 @@ jobs: run: | # Set version DOTNET_JSON="$(curl --retry 5 -sX GET https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json)" - DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)" + DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="active" or ."support-phase"=="maintenance") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)" DOTNET_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')" echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV # Build image