Add configurable path for script-exporter config file (#162) #23
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: Helm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'charts/script-exporter/**' | |
jobs: | |
helm: | |
name: Helm Chart | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure Git | |
run: git config --global user.email "[email protected]" && git config --global user.name "ricoberger" | |
- name: Package Helm Chart | |
run: helm package ./charts/script-exporter | |
- name: Clone Helm Repository | |
run: git clone https://github.com/ricoberger/helm-charts.git | |
- name: Update Helm Repository | |
run: mv script-exporter* ./helm-charts/ && helm repo index helm-charts/ --url https://ricoberger.github.io/helm-charts/ | |
- name: Commit Changes | |
run: cd helm-charts/ && git add . && git commit -m "Add new release for script_exporter" | |
- name: Push Changes | |
run: cd helm-charts/ && git push https://ricoberger:${{ secrets.TOKEN }}@github.com/ricoberger/helm-charts.git |