This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
48 lines (48 loc) · 5.27 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
39
40
41
42
43
44
45
46
47
48
language: go
go:
- "1.12"
sudo: required
services:
- docker
before_script:
- docker pull golang:1.12
- docker pull navikt/helm:2.0.0
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- git clone https://github.com/nais/charts
script:
- make install test
- /bin/bash bump.sh $GH_TOKEN
- make linux linux-cli cli-dist
- git tag -a $(/bin/cat ./version) -m "auto-tag from Makefile [skip ci]" && git push --tags https://[email protected]/nais/naisd
- make docker-build push-dockerhub
- docker run -v $(pwd):/naisd -w /naisd/helm/naisd navikt/helm dependency update
- cd charts
- docker run -v $(pwd):/charts -v $(pwd)/../:/naisd -w /charts navikt/helm package /naisd/helm/naisd
- docker run -v $(pwd):/charts -w /charts navikt/helm repo index --url https://nais.github.io/charts .
- echo "<html><body><pre>$(cat index.yaml)</pre></body></html>" > index.html
- git add --all
- git commit -m "auto-update by travis [skip ci]"
- git pull --rebase=true
- git push https://[email protected]/nais/charts
- cd ..
deploy:
provider: releases
api_key: $GH_TOKEN
file_glob: true
file: "nais-*"
skip_cleanup: true
on:
branch: master
branches:
only:
- master
env:
global:
- secure: tAqa9qeLHZPQkUHVbF3limHxDY2YcnyqMcc+10NmJhytdSwcLK0U2FWJ7B2JBg1G/MjPz5ZzLujyNmAwd5bc6iyk4g1+mxLpTz37Sn5oVRys1R4Jey5xiltuSGjYX8HFX3QlwSYvNAjHbr/U6xYix0xjvDxRh1TA43Oejfuoya8pCaR2AteW96JQ6iipdOBG2R1UqC1tnrkfdYYmN75lT6v8ApZMt6pJ66iuIuT5nclx2DXSkt0tm325OOFI9wU0HFxV5Vs/adKYLGs+OON7O60IyJmhf4G3NwLsJuR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