Strip sha256 hash
This commit is contained in:
1 parent
fd5f5c454f
commit
1ea79925d8
2 files changed
+2
-11
No files matched your search
@@ -5,19 +5,10 @@ set -euo pipefail
|
||||
: "${RUNNER_TEMP:?RUNNER_TEMP must be set}"
|
||||
|
||||
archive="helm-${HELM_VERSION}-linux-amd64.tar.gz"
|
||||
checksum="${archive}.sha256sum"
|
||||
|
||||
curl --fail --silent --show-error --location \
|
||||
--output "${RUNNER_TEMP}/${archive}" \
|
||||
"https://get.helm.sh/${archive}"
|
||||
curl --fail --silent --show-error --location \
|
||||
--output "${RUNNER_TEMP}/${checksum}" \
|
||||
"https://get.helm.sh/${checksum}"
|
||||
|
||||
# The upstream checksum contains the upstream archive basename, so preserve
|
||||
# that basename and perform the check from its containing directory.
|
||||
(cd "${RUNNER_TEMP}" && sha256sum --check "${checksum}")
|
||||
|
||||
tar --extract --gzip --file "${RUNNER_TEMP}/${archive}" \
|
||||
--directory "${RUNNER_TEMP}" linux-amd64/helm
|
||||
mv "${RUNNER_TEMP}/linux-amd64/helm" "${RUNNER_TEMP}/helm"
|
||||
|
||||
Reference in new issue
Block a user