docs: updated CHANGELOG.md (#6113) #676
Workflow file for this run
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: Release Charts | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write # to push chart release and create a release (helm/chart-releaser-action) | |
| packages: write # to push chart to GitHub Container Registry (ghcr.io) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Run chart-releaser | |
| uses: helm/chart-releaser-action@v1.7.0 | |
| with: | |
| skip_existing: true | |
| packages_with_index: true | |
| env: | |
| CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Login to GitHub Container Registry | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Push charts to OCI registry | |
| run: | | |
| for chart in charts/*/; do | |
| if [ -f "${chart}Chart.yaml" ]; then | |
| chart_name=$(basename "$chart") | |
| chart_version=$(grep '^version:' "${chart}Chart.yaml" | awk '{print $2}') | |
| echo "Packaging and pushing ${chart_name} version ${chart_version}..." | |
| helm package "$chart" -d /tmp/charts | |
| helm push "/tmp/charts/${chart_name}-${chart_version}.tgz" oci://ghcr.io/${{ github.repository_owner }}/charts | |
| fi | |
| done | |
| - name: Logout from GitHub Container Registry | |
| if: always() | |
| run: | | |
| helm registry logout ghcr.io |