Skip to content

Commit d706c62

Browse files
authored
Merge pull request #153 from linuxserver/code-server-dotnet-current
Include current dotnet release
2 parents 39e01aa + 1c2f808 commit d706c62

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.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") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
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)"
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") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \
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); \
1212
fi && \
1313
mkdir -p /root-layer/dotnet && \
1414
echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ In code server docker arguments, set an environment variable `DOCKER_MODS=linuxs
66

77
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-dotnet|linuxserver/mods:code-server-mod2`
88

9-
All current [lts releases](https://dotnet.microsoft.com/download/dotnet-core) will be made available inside the container (3.1.403 and 2.1.811 as of 2020/10/14).
9+
The [current release and all current lts releases](https://dotnet.microsoft.com/download/dotnet-core) will be made available inside the container (5.0.101, 3.1.404 and 2.1.811 as of 2020/12/13).
1010

1111
The binaries are accessible at `/dotnet_<sdkversion>/dotnet` for each respective version.
1212

13-
The latest version binary is symlinked from `/usr/local/bin/dotnet` so it can be called via `dotnet` from anywhere.
13+
The current version binary is symlinked from `/usr/local/bin/dotnet` so it can be called via `dotnet` from anywhere.

0 commit comments

Comments
 (0)