From 52cd051198101bf22ba928f1f2e869890217b768 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Mon, 8 Jul 2019 13:56:38 +0100 Subject: [PATCH] Fixed travis build. --- .travis.yml | 8 +++----- build/deploy.sh | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) 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