mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Add a way to install Helm
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
345189653e
commit
ec7e89bd00
5 changed files with 45 additions and 42 deletions
19
scripts/install-helm
Executable file
19
scripts/install-helm
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue