Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .scripts/actions/install_helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ PLATFORM=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_platform.sh")
ARCH=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_architecture.sh")

FILENAME="helm-${HELM_VERSION}-${PLATFORM}-${ARCH}.tar.gz"
VERIFY_SIGNATURE="${VERIFY_SIGNATURE:-true}"

echo "::group::Install helm"
mkdir /tmp/helm
curl -fsSL -o /tmp/helm/helm.tar.gz "https://get.helm.sh/${FILENAME}"
curl -fsSL -o /tmp/helm/helm.tar.gz.asc "https://github.com/helm/helm/releases/download/${HELM_VERSION}/${FILENAME}.asc"

curl https://keybase.io/mattfarina/pgp_keys.asc | gpg --import
gpg --verify /tmp/helm/helm.tar.gz.asc /tmp/helm/helm.tar.gz
if [[ "$VERIFY_SIGNATURE" == "true" ]]; then
curl -fsSL -o /tmp/helm/helm.tar.gz.asc "https://github.com/helm/helm/releases/download/${HELM_VERSION}/${FILENAME}.asc"
curl https://keybase.io/mattfarina/pgp_keys.asc | gpg --import
gpg --verify /tmp/helm/helm.tar.gz.asc /tmp/helm/helm.tar.gz
fi

tar --directory="/tmp/helm" --strip-components=1 -zxvf /tmp/helm/helm.tar.gz "${PLATFORM}-${ARCH}"
# Overwrite the existing binary
Expand Down
2 changes: 2 additions & 0 deletions setup-k8s-tools/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ runs:
env:
HELM_VERSION: ${{ inputs.helm-version }}
GITHUB_DEBUG: ${{ runner.debug }}
# The signature is expired since a couple of years...
VERIFY_SIGNATURE: "false"
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_helm.sh"