Skip to content

Commit

Permalink
commenting any possible change to tmpl yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
yuting-liu committed Aug 19, 2019
1 parent 318ce97 commit 64d7c5b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ ruby deploy/test/test_docker.rb

if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ -n "$GITHUB_TOKEN" ]; then
echo "Generating yaml from helm chart..."
echo "# This file is auto-generated." > deploy/kubernetes/fluentd-sumologic.yaml.tmpl
sudo helm init
# echo "# This file is auto-generated." > deploy/kubernetes/fluentd-sumologic.yaml.tmpl
sudo helm init --client-only
cd deploy/helm/sumologic
sudo helm dependency update
cd ../
sudo helm template ./sumologic --namespace "\$NAMESPACE" --set dryRun=true >> deploy/kubernetes/fluentd-sumologic.yaml.tmpl
cd ../../../
# sudo helm template deploy/helm/sumologic --namespace "\$NAMESPACE" --set dryRun=true >> deploy/kubernetes/fluentd-sumologic.yaml.tmpl

cd ../../
if [[ $(git diff deploy/kubernetes/fluentd-sumologic.yaml.tmpl) ]]; then
echo "Detected changes in 'fluentd-sumologic.yaml.tmpl', committing the updated version to $TRAVIS_BRANCH..."
git config --global user.email "travis@travis-ci.org"
Expand Down

0 comments on commit 64d7c5b

Please sign in to comment.