From aada0fd8afdace92a47da400274ec0211be9fefd Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Thu, 19 Aug 2021 12:04:28 +0200 Subject: [PATCH] fix download path to get helm binary (#355) Signed-off-by: Carlos Panato --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3370613f..a2dbef37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,12 +25,13 @@ RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$KUBECTL mv kubectl /usr/local/bin/ # Install Helm -ARG HELM_VERSION=v2.17.0 -RUN curl -LO "https://kubernetes-helm.storage.googleapis.com/helm-$HELM_VERSION-linux-amd64.tar.gz" && \ - mkdir -p "/usr/local/helm-$HELM_VERSION" && \ - tar -xzf "helm-$HELM_VERSION-linux-amd64.tar.gz" -C "/usr/local/helm-$HELM_VERSION" && \ - ln -s "/usr/local/helm-$HELM_VERSION/linux-amd64/helm" /usr/local/bin/helm && \ - rm -f "helm-$HELM_VERSION-linux-amd64.tar.gz" +ARG helm_version=v2.17.0 +LABEL helm_version=$helm_version +RUN curl -LO "https://get.helm.sh/helm-$helm_version-linux-amd64.tar.gz" && \ + mkdir -p "/usr/local/helm-$helm_version" && \ + tar -xzf "helm-$helm_version-linux-amd64.tar.gz" -C "/usr/local/helm-$helm_version" && \ + ln -s "/usr/local/helm-$helm_version/linux-amd64/helm" /usr/local/bin/helm && \ + rm -f "helm-$helm_version-linux-amd64.tar.gz" COPY ./etc/chart_schema.yaml /etc/ct/chart_schema.yaml COPY ./etc/lintconf.yaml /etc/ct/lintconf.yaml