Skip to content

Commit

Permalink
create-helm-chart running in travis' after_success
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostec committed Oct 31, 2017
1 parent 0bc4517 commit fc85f7a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ script:
- make test-ci
after_success:
- bash after-success.sh
- bash create-helm-chart.sh
env:
global:
- S3CMD_ZIP=master.zip
Expand Down
8 changes: 0 additions & 8 deletions after-success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
if ! test -z $TRAVIS_TAG; then
docker tag maestro:latest $REPO:${TRAVIS_TAG} \
&& docker push $REPO:${TRAVIS_TAG};

# creating helm chart for this tag
cd helm; make package; cd ..
ssh-keyscan $TFG_GITLAB >> ~/.ssh/known_hosts
git clone $HELM_REPO_GIT > /dev/null 2>&1
cp -r \helm/pkg/* helm-repo/charts
cd helm-repo; make vendor; make upload-with-env
git add .; git commit -m "travis helm update"; git push origin master
fi
fi

Expand Down
8 changes: 8 additions & 0 deletions create-helm-chart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if ! test -z $TRAVIS_TAG; then
cd helm; make package; cd ..
ssh-keyscan $TFG_GITLAB >> ~/.ssh/known_hosts
git clone $HELM_REPO_GIT > /dev/null 2>&1
cp -r \helm/pkg/* helm-repo/charts
cd helm-repo; make vendor; make upload-with-env
git add .; git commit -m "travis helm update"; git push origin master
fi
2 changes: 1 addition & 1 deletion helm/charts/maestro/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: maestro
home: https://github.com/topfreegames/maestro
description: Maestro api and worker
version: 4.2.22
version: 4.2.23
maintainers:
- name: TFGCo
email: backend@tfgco.com
2 changes: 1 addition & 1 deletion metadata/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package metadata

//Version of Maestro
var Version = "4.2.22"
var Version = "4.2.23"

//KubeVersion is the desired Kubernetes version
var KubeVersion = "v1.7.5"

0 comments on commit fc85f7a

Please sign in to comment.