From 7bb62f129242a3dd466059f5ddeebb2ded93da0a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 8 Apr 2021 14:05:30 -0700 Subject: [PATCH] fix: use curl to install nfpm --- ci/images/debian10/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/images/debian10/Dockerfile b/ci/images/debian10/Dockerfile index d3c9a311b..397316c2b 100644 --- a/ci/images/debian10/Dockerfile +++ b/ci/images/debian10/Dockerfile @@ -37,9 +37,8 @@ ENV GOPATH=/gopath RUN mkdir -p $GOPATH && chmod -R 777 $GOPATH ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH -# Install Go dependencies -ENV GO111MODULE=on -RUN go get github.com/goreleaser/nfpm/cmd/nfpm@v2.3.1 +# More stable than go get +RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh RUN VERSION="$(curl -fsSL https://storage.googleapis.com/kubernetes-release/release/stable.txt)" && \ curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl" > /usr/local/bin/kubectl \