Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/62fa1a2c1233477fe320805cb62ea7ea to your computer and use it in GitHub Desktop.
Save velotiotech/62fa1a2c1233477fe320805cb62ea7ea to your computer and use it in GitHub Desktop.
release script for helloapp
#!/bin/bash
TAG=$1
echo "start tiller"
export KUBECONFIG=$HOME/.kube/kubeconfig
helm tiller start-ci
export HELM_HOST=127.0.0.1:44134
result=$(eval helm ls | grep helloapp)
if [ $? -ne "0" ]; then
helm install --timeout 180 --name helloapp --set image.tag=$TAG charts/helloapp
else
helm upgrade --timeout 180 helloapp --set image.tag=$TAG charts/helloapp
fi
echo "stop tiller"
helm tiller stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment