From 3c3d4183fac380fbb809d2b7dfb6c090af46cead Mon Sep 17 00:00:00 2001 From: aptalca Date: Thu, 17 Feb 2022 09:52:55 -0500 Subject: [PATCH] update url --- .github/workflows/BuildImage.yml | 2 +- Dockerfile | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 16c9df30..756f55ec 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -21,7 +21,7 @@ jobs: - name: Build image run: | # Set version - GO_WEBSITE=$(curl -sX GET https://golang.org/dl/) + GO_WEBSITE=$(curl -sLX GET https://go.dev/dl/) GO_VERSION=${{ github.event.inputs.GO_VERSION }} GO_VERSION=${GO_VERSION:-$(echo "$GO_WEBSITE" | grep -o '.*linux-amd64.*' | grep -oP '(?<=go).*(?=.linux)')} if [ $(echo "$GO_VERSION" | tr -d -c '.' | awk '{ print length; }') = "1" ]; then GO_TAG="${GO_VERSION}.0"; else GO_TAG="${GO_VERSION}"; fi diff --git a/Dockerfile b/Dockerfile index 8694a3c1..ca636a5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine:3.12 as buildstage +FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as buildstage ARG GO_VERSION @@ -7,18 +7,18 @@ RUN \ curl \ grep && \ if [ -z ${GO_VERSION+x} ]; then \ - GO_VERSION=$(curl -sX GET https://golang.org/dl/ | grep -o '.*linux-amd64.*' | grep -oP '(?<=go).*(?=.linux)'); \ + GO_VERSION=$(curl -sLX GET https://go.dev/dl/ | grep -o '.*linux-amd64.*' | grep -oP '(?<=go).*(?=.linux)'); \ fi && \ mkdir -p /root-layer/golang && \ curl -o \ /root-layer/golang/golang_x86_64.tar.gz -L \ - https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \ + https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \ curl -o \ /root-layer/golang/golang_armv7l.tar.gz -L \ - https://dl.google.com/go/go${GO_VERSION}.linux-armv6l.tar.gz && \ + https://go.dev/dl/go${GO_VERSION}.linux-armv6l.tar.gz && \ curl -o \ /root-layer/golang/golang_aarch64.tar.gz -L \ - https://dl.google.com/go/go${GO_VERSION}.linux-arm64.tar.gz + https://go.dev/dl/go${GO_VERSION}.linux-arm64.tar.gz COPY root/ /root-layer/