Skip to content

Commit

Permalink
Chore/update deps linux (#34)
Browse files Browse the repository at this point in the history
* chore: updated launchpad linux deps task

* chore: added apt update

* chore: consistency updates and k9s new v fix
  • Loading branch information
calinah authored Aug 31, 2023
1 parent 607a2b4 commit c60051e
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions taskfiles/launchpad_deps_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tasks:
cmds:
- |
cd $(mktemp -d)
apt-get install wget
apt-get update && apt-get install wget
wget https://get.helm.sh/helm-v{{.HELM_VERSION}}-linux-amd64.tar.gz
tar xvf helm-v{{.HELM_VERSION}}-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin
Expand Down Expand Up @@ -52,7 +52,7 @@ tasks:
if [ "$?" != "0" ]; then
exit 1
else
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
fi
kubeseal:
Expand All @@ -67,7 +67,7 @@ tasks:
jq:
interactive: true
cmds:
- apt install --yes jq
- apt-get update && apt-get install --yes jq

octant:
interactive: true
Expand All @@ -82,35 +82,34 @@ tasks:
cmds:
- |
cd $(mktemp -d)
wget https://github.com/derailed/k9s/releases/download/v{{.K9S_VERSION}}/k9s_Linux_x86_64.tar.gz
tar xfz k9s_Linux_x86_64.tar.gz
wget https://github.com/derailed/k9s/releases/download/v{{.K9S_VERSION}}/k9s_Linux_amd64.tar.gz
tar xfz k9s_Linux_amd64.tar.gz
mv k9s /usr/local/bin
gum:
interactive: true
cmds:
- |
echo 'deb [trusted=yes] https://repo.charm.sh/apt/ /' | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum
apt-get update && apt-get install gum
helm-git:
interactive: true
cmds:
- |
helm plugin list | grep 'helm-git' &> /dev/null
if [ $? == 0 ]; then
echo "Plugin already exists skipping"
if helm plugin list 2>/dev/null | grep -q 'helm-git'; then
echo "Plugin helm-git already exists, skipping"
else
helm plugin install https://github.com/aslafy-z/helm-git || echo "OK"
helm plugin install https://github.com/aslafy-z/helm-git || (echo "Error installing helm-git" && exit 1)
fi
helm-diff:
interactive: true
cmds:
- |
helm plugin list | grep 'diff' &> /dev/null
if [ $? == 0 ]; then
if helm plugin list 2>/dev/null | grep -q 'diff'; then
echo "Plugin already exists skipping"
else
helm plugin install https://github.com/databus23/helm-diff || echo "OK"
fi
helm plugin install https://github.com/databus23/helm-diff || (echo "Error installing helm-git" && exit 1)
fi

0 comments on commit c60051e

Please sign in to comment.