Skip to content

Instantly share code, notes, and snippets.

@kwonghung-YIP
Created October 5, 2019 06:33
Show Gist options
  • Save kwonghung-YIP/6eaef3b17e1e697bfe73293bafee32c1 to your computer and use it in GitHub Desktop.
Save kwonghung-YIP/6eaef3b17e1e697bfe73293bafee32c1 to your computer and use it in GitHub Desktop.
travis.yml for helm-charts-repo repository
language: minimal
if: branch = master
before_install:
- curl -L https://git.io/get_helm.sh | bash
- helm init --client-only
script:
- mkdir files-to-gh-pages
- echo $(pwd)
- helm package charts/tomcat -d files-to-gh-pages
- cp README.md files-to-gh-pages
- cd files-to-gh-pages
- helm repo index .
- ls -ltr
deploy:
provider: pages
github_token: $GITHUB_TOKEN
local_dir: files-to-gh-pages
target_branch: gh-pages
verbose: true
skip_cleanup: true
keep_history: true
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment