mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
17 lines
366 B
Bash
Executable file
17 lines
366 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"
|
|
|
|
/scripts/download-file helm.tar.gz "$HELM_DOWNLOAD_URL" $HELM_DOWNLOAD_SHA256
|
|
|
|
tar -xzf helm.tar.gz --strip-components=1
|
|
rm helm.tar.gz
|
|
|
|
chmod +x helm
|
|
mv helm /usr/bin/
|
|
|
|
helm version --client
|