-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
28 lines (25 loc) · 912 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: generic
if: tag IS present
install:
# Installing helm
- wget -q https://storage.googleapis.com/kubernetes-helm/helm-v2.6.2-linux-amd64.tar.gz
- tar xzfv helm-v2.6.2-linux-amd64.tar.gz
- PATH=`pwd`/linux-amd64/:$PATH
- helm init --client-only
script:
- if [ ! -z "$TRAVIS_TAG" ]; then VERSION="--version $TRAVIS_TAG"; fi
- git remote set-branches --add origin gh-pages
- git fetch origin gh-pages
- mkdir new_charts/
- helm package charts/loghouse -d new_charts/ $VERSION
- git checkout gh-pages
- export CHART=$(ls -1 new_charts/)
- mv new_charts/${CHART} charts/${CHART}
- rm -rf new_charts/
- helm repo index charts/
- git add charts/
- git commit --message "Add new version ${TRAVIS_TAG}"
- git remote add origin-pages https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git push --quiet --set-upstream origin-pages gh-pages
after_success:
- true