Merge pull request #359 from linuxserver/code-server-julia-dev

update version retrieval
This commit is contained in:
aptalca
2022-03-30 18:29:39 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Build image - name: Build image
run: | run: |
# Set version # Set version
JULIA_VERSION=$(curl -sfX GET "https://api.github.com/repos/JuliaLang/julia/releases/latest" | jq -r '. | .tag_name' | sed 's|^v||') JULIA_VERSION=$(curl -sL https://julialang.org/downloads/ | sed 's|.*Current stable release: v||' | sed 's| (.*||')
echo "JULIA_VERSION=${JULIA_VERSION}" >> $GITHUB_ENV echo "JULIA_VERSION=${JULIA_VERSION}" >> $GITHUB_ENV
docker build --no-cache --build-arg JULIA_VERSION="${JULIA_VERSION}" -t ${{ github.sha }} . docker build --no-cache --build-arg JULIA_VERSION="${JULIA_VERSION}" -t ${{ github.sha }} .
+3 -3
View File
@@ -7,9 +7,9 @@ RUN \
curl \ curl \
jq && \ jq && \
if [ -z "${JULIA_VERSION}" ]; then \ if [ -z "${JULIA_VERSION}" ]; then \
JULIA_VERSION=$(curl -sX GET "https://api.github.com/repos/JuliaLang/julia/releases/latest" \ JULIA_VERSION=$(curl -sL https://julialang.org/downloads/ \
| jq -r '. | .tag_name' \ | sed 's|.*Current stable release: v||' \
| sed 's|^v||'); \ | sed 's| (.*||'); \
fi && \ fi && \
JULIA_MIN_VERSION=$(echo "${JULIA_VERSION}" | cut -d. -f 1,2) && \ JULIA_MIN_VERSION=$(echo "${JULIA_VERSION}" | cut -d. -f 1,2) && \
mkdir -p /root-layer/julia-bins && \ mkdir -p /root-layer/julia-bins && \