Update Docker Image in Helm Chart #101
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: | |
paths: | |
- 'charts/vault-secrets-operator/**' | |
jobs: | |
build-release: | |
name: Helm Chart | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint | |
run: | | |
helm lint charts/vault-secrets-operator | |
- name: Template | |
run: | | |
helm template vault-secrets-operator -n vault-secrets-operator charts/vault-secrets-operator | |
- name: Configure git | |
run: git config --global user.email "[email protected]" && git config --global user.name "ricoberger" | |
- name: Package Helm Chart | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: helm package charts/vault-secrets-operator | |
- name: Clone Helm Repository | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: git clone https://github.com/ricoberger/helm-charts.git | |
- name: Update Helm Repository | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: mv vault-secrets-operator* helm-charts/ && helm repo index helm-charts/ --url https://ricoberger.github.io/helm-charts/ | |
- name: Commit Changes | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: cd helm-charts/ && git add . && git commit -m "Add new release for Vault Secrets Operator" | |
- name: Push Changes | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: cd helm-charts/ && git push https://ricoberger:${{ secrets.TOKEN }}@github.com/ricoberger/helm-charts.git |