Fixed travis build.

This commit is contained in:
Benoit Schweblin 2019-07-08 13:56:38 +01:00
parent 3dd66ae280
commit 52cd051198
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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