Skip to content

Commit 21f0309

Browse files
authored
Merge pull request #526 from Fronti/code-server-dotnet
code-server-dotnet: update versions filter
2 parents 631e361 + ad8dbe3 commit 21f0309

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/BuildImage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: |
1818
# Set version
1919
DOTNET_JSON="$(curl --retry 5 -sX GET https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json)"
20-
DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
20+
DOTNET_VERSIONS="$(echo $DOTNET_JSON | jq -r '."releases-index"[] | select(."support-phase"=="active" or ."support-phase"=="maintenance") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
2121
DOTNET_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')"
2222
echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV
2323
# Build image

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN \
88
jq && \
99
DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json") && \
1010
if [ -z ${DOTNET_VERSIONS+x} ]; then \
11-
DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \
11+
DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="active" or ."support-phase"=="maintenance") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \
1212
fi && \
1313
mkdir -p /root-layer/dotnet && \
1414
echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \

0 commit comments

Comments
 (0)