mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
Merge pull request #526 from Fronti/code-server-dotnet
code-server-dotnet: update versions filter
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" 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 ' ' '_')"
|
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" 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 && \
|
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 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user