This commit is contained in:
@@ -11,6 +11,15 @@ main() {
|
|||||||
TMPDIR="$(mktemp -d)"
|
TMPDIR="$(mktemp -d)"
|
||||||
echo "Using temp dir: ${TMPDIR}"
|
echo "Using temp dir: ${TMPDIR}"
|
||||||
|
|
||||||
|
cd "${TMPDIR}"
|
||||||
|
mkdir golang
|
||||||
|
cd golang
|
||||||
|
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text' | head -n1)
|
||||||
|
GOLANG_URL="https://go.dev/dl/$(GO_VERSION).linux-amd64.tar.gz"
|
||||||
|
wget "${GOLANG_URL}"
|
||||||
|
tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
|
||||||
|
ls -lah
|
||||||
|
|
||||||
# 2. Clone latest CoreDNS release
|
# 2. Clone latest CoreDNS release
|
||||||
cd "${TMPDIR}"
|
cd "${TMPDIR}"
|
||||||
COREDNS_REPO_URL="https://github.com/coredns/coredns.git"
|
COREDNS_REPO_URL="https://github.com/coredns/coredns.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user