mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
19 lines
407 B
Bash
Executable file
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
|