Files
feedc0de 1ea79925d8
Validate and publish / Test image and chart (push) Successful in 3m33s
Validate and publish / Publish image and OCI chart (push) Successful in 26s
Strip sha256 hash
2026-10-14 20:14:45 +02:00

16 lines
522 B
Bash

#!/usr/bin/env bash
set -euo pipefail
: "${HELM_VERSION:?HELM_VERSION must be set, for example v4.2.2}"
: "${RUNNER_TEMP:?RUNNER_TEMP must be set}"
archive="helm-${HELM_VERSION}-linux-amd64.tar.gz"
curl --fail --silent --show-error --location \
--output "${RUNNER_TEMP}/${archive}" \
"https://get.helm.sh/${archive}"
tar --extract --gzip --file "${RUNNER_TEMP}/${archive}" \
--directory "${RUNNER_TEMP}" linux-amd64/helm
mv "${RUNNER_TEMP}/linux-amd64/helm" "${RUNNER_TEMP}/helm"
chmod 0700 "${RUNNER_TEMP}/helm"