Merge pull request #172 from shoplineapp/feature/CP-202-sl-namespace-… #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DeployChartServer | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
environment: production | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{secrets.SHOPLINE_DEVOPS_PAT }} | |
- name: Download helm binary | |
run: curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | |
- name: Sync master branch to github-pages branch | |
run: | | |
git config --global user.name 'shopline-devops' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/shoplineapp/helm-charts | |
git fetch | |
git checkout github-pages | |
git pull origin master --allow-unrelated-histories -X theirs --no-rebase | |
- name: Package helm chart file and create index.yaml | |
run: | | |
helm package simple -d simple | |
helm package fluentd-cloudwatch -d fluentd-cloudwatch | |
helm package cronjob -d cronjob | |
helm package backburner -d backburner | |
helm package eks -d eks | |
helm package oomkill-exporter -d oomkill-exporter | |
helm package sl-namespace-init -d sl-namespace-init | |
helm package argo-event -d argo-event | |
helm repo index . --url https://shoplineapp.github.io/helm-charts | |
ls -al simple/ | |
cat index.yaml | |
- name: Update github pages | |
run: | | |
git add */*.tgz index.yaml | |
git commit -m 'update chart version' | |
git push origin github-pages |