gitlab-build-images/scripts/install-helm
Rémy Coutable ec7e89bd00
Add a way to install Helm
Signed-off-by: Rémy Coutable <remy@rymai.me>
2022-06-30 16:28:49 +02:00

19 lines
407 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-$(dpkg --print-architecture).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