How to install helm in travis pipeline

368 Views Asked by At

I am doing this to install helm in my travis job

curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm

And when the command helm init --client-only runs in the travis, it says

Not Really a helm install

Can someone help me out in this?

2

There are 2 best solutions below

1
On BEST ANSWER

This command is the correct way to install helm in the Travis pipeline:

curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

And then you can check by using

helm version
1
On

As Installing Helm chapter from the official Helm guide says:

  1. Download your desired version from here
  2. Unpack it (tar -zxvf helm-v3.0.0-linux-amd64.tar.gz)
  3. Find the helm binary in the unpacked directory, and move it to its desired destination (mv Linux-amd64/helm /usr/local/bin/helm).

From there, you should be able to run the client and add the stable repo : helm help