Skip to content

Merge pull request #26 from ShubhamTiwary914/prod/provision #9

Merge pull request #26 from ShubhamTiwary914/prod/provision

Merge pull request #26 from ShubhamTiwary914/prod/provision #9

name: Helm Chart release for Verne to charts branch
on:
push:
branches:
- 'master'
paths:
- 'helm/verne/**'
workflow_dispatch:
jobs:
release-helm-verne:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
with:
version: 'latest'
- name: Package Helm chart to tempdir
run: helm package helm/verne --destination /tmp/helm-charts
- name: Switch to charts branch
run: |
git fetch origin charts
git checkout charts
- name: Copy packaged chart
run: |
cp /tmp/helm-charts/*.tgz .
- name: Generate Helm repo index
run: |
helm repo index . --url https://raw.githubusercontent.com/${{ github.repository }}/charts/
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add *.tgz index.yaml
git commit -m "Release chart from ${{ github.sha }}" || echo "No changes"
git push origin charts