pods' image policy set to always (for dealing with updates) #14
This file contains hidden or 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 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 into verne folder | |
| run: | | |
| mkdir -p ./verne | |
| cp /tmp/helm-charts/*.tgz ./verne | |
| - name: Generate Helm repo index | |
| run: | | |
| helm repo index ./verne --url https://raw.githubusercontent.com/${{ github.repository }}/charts/verne | |
| - 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 ./verne | |
| git commit -m "Release verne chart from ${{ github.sha }}" || echo "No changes" | |
| git push origin charts |