Skip to content

Commit

Permalink
[travis][xs]: automate deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zelima committed May 15, 2018
1 parent 55bc599 commit 9693e03
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: bash
sudo: required
services:
- docker
install:
- curl -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | sudo bash
script:
- bash helm_lint_all.sh
deploy:
provider: script
script: bash .travis_deploy.sh
on:
branch: master
2 changes: 1 addition & 1 deletion helm_upgrade_external_chart.sh
Expand Up @@ -34,7 +34,7 @@ done
VALUES=`cat "${TEMPDIR}/values.yaml"`

if [ "`./read_yaml.py "${TEMPDIR}/values.yaml" enabled 2>/dev/null`" == "true" ]; then
CMD="helm upgrade -f ${TEMPDIR}/values.yaml ${RELEASE_NAME} ${CHART_DIRECTORY} ${@:2}"
CMD="helm upgrade -i -f ${TEMPDIR}/values.yaml ${RELEASE_NAME} ${CHART_DIRECTORY} ${@:2}"
if ! $CMD; then
echo
echo "${TEMPDIR}/values.yaml"
Expand Down

0 comments on commit 9693e03

Please sign in to comment.