update versions filter

This commit is contained in:
Fronti
2022-11-19 01:22:09 +00:00
parent 631e361fd3
commit 8df32d9251
+1 -1
View File
@@ -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 && \