diff --git a/.travis.yml b/.travis.yml index ef705169..9c39e5a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,12 +10,10 @@ before_deploy: # Run docker build - docker build -t benweet/stackedit . # Install Helm - - curl -SLO https://git.io/get_helm.sh - - chmod 700 get_helm.sh - - ./get_helm.sh + - curl -SL -o /tmp/get_helm.sh https://git.io/get_helm.sh + - chmod 700 /tmp/get_helm.sh + - /tmp/get_helm.sh - helm init --client-only - # Make the chart - - npm run chart deploy: provider: script diff --git a/build/deploy.sh b/build/deploy.sh index 1ab5d16e..931f81ad 100644 --- a/build/deploy.sh +++ b/build/deploy.sh @@ -8,6 +8,10 @@ docker push benweet/stackedit:$TRAVIS_TAG docker tag benweet/stackedit:$TRAVIS_TAG benweet/stackedit:latest docker push benweet/stackedit:latest +# Build the chart +cd "$TRAVIS_BUILD_DIR" +npm run chart + # Add chart to helm repository git clone --branch master "https://benweet:$GITHUB_TOKEN@github.com/benweet/stackedit-charts.git" /tmp/charts cd /tmp/charts