mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
Include current dotnet release
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Set version
|
# Set version
|
||||||
DOTNET_JSON="$(curl --retry 5 -sX GET https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json)"
|
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") | ."latest-sdk"' | tr '\n' ' ' | head -c -1)"
|
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_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')"
|
DOTNET_TAG="$(echo $DOTNET_VERSIONS | tr ' ' '_')"
|
||||||
echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV
|
echo "DOTNET_TAG=${DOTNET_TAG}" >> $GITHUB_ENV
|
||||||
# Build image
|
# Build image
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ RUN \
|
|||||||
jq && \
|
jq && \
|
||||||
DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json") && \
|
DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json") && \
|
||||||
if [ -z ${DOTNET_VERSIONS+x} ]; then \
|
if [ -z ${DOTNET_VERSIONS+x} ]; then \
|
||||||
DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="lts") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \
|
DOTNET_VERSIONS=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="lts" or ."support-phase"=="current") | ."latest-sdk"' | tr '\n' ' ' | head -c -1); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p /root-layer/dotnet && \
|
mkdir -p /root-layer/dotnet && \
|
||||||
echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \
|
echo "$DOTNET_VERSIONS" > /root-layer/dotnet/versions.txt && \
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ In code server docker arguments, set an environment variable `DOCKER_MODS=linuxs
|
|||||||
|
|
||||||
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`
|
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`
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
||||||
The binaries are accessible at `/dotnet_<sdkversion>/dotnet` for each respective version.
|
The binaries are accessible at `/dotnet_<sdkversion>/dotnet` for each respective version.
|
||||||
|
|
||||||
The latest version binary is symlinked from `/usr/local/bin/dotnet` so it can be called via `dotnet` from anywhere.
|
The current version binary is symlinked from `/usr/local/bin/dotnet` so it can be called via `dotnet` from anywhere.
|
||||||
|
|||||||
Reference in New Issue
Block a user