mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
Fixed travis build.
This commit is contained in:
parent
3dd66ae280
commit
52cd051198
|
@ -10,12 +10,10 @@ before_deploy:
|
||||||
# Run docker build
|
# Run docker build
|
||||||
- docker build -t benweet/stackedit .
|
- docker build -t benweet/stackedit .
|
||||||
# Install Helm
|
# Install Helm
|
||||||
- curl -SLO https://git.io/get_helm.sh
|
- curl -SL -o /tmp/get_helm.sh https://git.io/get_helm.sh
|
||||||
- chmod 700 get_helm.sh
|
- chmod 700 /tmp/get_helm.sh
|
||||||
- ./get_helm.sh
|
- /tmp/get_helm.sh
|
||||||
- helm init --client-only
|
- helm init --client-only
|
||||||
# Make the chart
|
|
||||||
- npm run chart
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
|
|
|
@ -8,6 +8,10 @@ docker push benweet/stackedit:$TRAVIS_TAG
|
||||||
docker tag benweet/stackedit:$TRAVIS_TAG benweet/stackedit:latest
|
docker tag benweet/stackedit:$TRAVIS_TAG benweet/stackedit:latest
|
||||||
docker push benweet/stackedit:latest
|
docker push benweet/stackedit:latest
|
||||||
|
|
||||||
|
# Build the chart
|
||||||
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
|
npm run chart
|
||||||
|
|
||||||
# Add chart to helm repository
|
# Add chart to helm repository
|
||||||
git clone --branch master "https://benweet:$GITHUB_TOKEN@github.com/benweet/stackedit-charts.git" /tmp/charts
|
git clone --branch master "https://benweet:$GITHUB_TOKEN@github.com/benweet/stackedit-charts.git" /tmp/charts
|
||||||
cd /tmp/charts
|
cd /tmp/charts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user