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 && \