-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
38 lines (37 loc) · 1.28 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
38
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 --stable-repo-url https://charts.helm.sh/stable
- ./helm lint --strict --values helm-charts/froxlor/helm-lint-values.yaml helm-charts/froxlor
- ./helm3 lint --strict --values helm-charts/froxlor/helm-lint-values.yaml helm-charts/froxlor
- echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
- |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
git clone --branch gh-pages git@github.com:evermind/docker-froxlor.git repo
./helm package helm-charts/froxlor -d repo
./helm repo index --url https://evermind.github.io/docker-froxlor/ repo
cd repo
./index.html.sh > index.html
git add .
git commit -m "Travis build"
git push
fi
branches:
only:
- master