gitlab-build-images/scripts/install-helm
2022-09-22 08:17:17 +00:00

19 lines
399 B
Bash
Executable file

#!/bin/bash
set -xeou pipefail
HELM_VERSION=${1}
HELM_DOWNLOAD_SHA256=${2}
HELM_DOWNLOAD_URL="https://get.helm.sh/helm-v${HELM_VERSION}-linux-${TARGETARCH:-amd64}.tar.gz"
curl -fsSL "${HELM_DOWNLOAD_URL}" -o helm.tar.gz
echo "${HELM_DOWNLOAD_SHA256} helm.tar.gz" | sha256sum -c -
tar -xzf helm.tar.gz --strip-components=1
rm helm.tar.gz
chmod +x helm
mv helm /usr/bin/
helm version --client