Created
June 17, 2020 07:01
-
-
Save velotiotech/62fa1a2c1233477fe320805cb62ea7ea to your computer and use it in GitHub Desktop.
release script for helloapp
This file contains 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