forked from Mailu/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (36 loc) · 1.1 KB
/
.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
29
30
31
32
33
34
35
36
37
language: generic
fail_fast: true
install:
- >
curl -s -L https://get.helm.sh/helm-v3.0.2-linux-amd64.tar.gz
| tar xfvz - --strip-components=1 linux-amd64/helm
- chmod 0700 helm; mv helm helm3
- >
curl -s -L https://get.helm.sh/helm-v2.16.1-linux-amd64.tar.gz
| tar xfvz - --strip-components=1 linux-amd64/helm
- chmod 0700 helm
- |
if [ ! -z "$GITHUB_SSH_KEY" ]; then
echo "Adding deployment ssh key"
echo -e "$GITHUB_SSH_KEY" | base64 -d > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa
fi
script:
- set -e
- mkdir -p out
- ./helm init --client-only
- ./helm lint --strict --values mailu/helm-lint-values.yaml mailu
- ./helm3 lint --strict --values mailu/helm-lint-values.yaml mailu
- |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
git clone --branch gh-pages [email protected]:Mailu/helm-charts.git repo
./helm package mailu -d repo
./helm repo index --url https://mailu.github.io/helm-charts/ repo
cd repo
./index.html.sh > index.html
git add .
git commit -m "Travis build"
git push
fi
branches:
only:
- master