From 51e1ce68b135f57c049086339890f8373b773a56 Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 29 Mar 2022 21:29:03 -0400 Subject: [PATCH] update version retrieval --- .github/workflows/BuildImage.yml | 2 +- Dockerfile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 4a5d056..3e5e00e 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -16,7 +16,7 @@ jobs: - name: Build image run: | # 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 docker build --no-cache --build-arg JULIA_VERSION="${JULIA_VERSION}" -t ${{ github.sha }} . diff --git a/Dockerfile b/Dockerfile index 2201019..40a8e64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ RUN \ curl \ jq && \ if [ -z "${JULIA_VERSION}" ]; then \ - JULIA_VERSION=$(curl -sX 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| (.*||'); \ fi && \ JULIA_MIN_VERSION=$(echo "${JULIA_VERSION}" | cut -d. -f 1,2) && \ mkdir -p /root-layer/julia-bins && \