Created
March 31, 2019 20:00
-
-
Save akash-gautam/e3ea4517053109ec89daea5b3477f384 to your computer and use it in GitHub Desktop.
release script for helloapp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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