Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Created March 31, 2019 20:00
Show Gist options
  • Save akash-gautam/e3ea4517053109ec89daea5b3477f384 to your computer and use it in GitHub Desktop.
Save akash-gautam/e3ea4517053109ec89daea5b3477f384 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