build(repo): Update Helm chart to v0.4.2 #28
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: Build and publish Helm Chart | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- cluster/charts/fuel-streams-publisher/Chart.yaml | |
- cluster/charts/fuel-nats/Chart.yaml | |
permissions: | |
contents: read | |
jobs: | |
helm-release: | |
name: Build Helm Chart | |
runs-on: ubuntu-latest | |
if: | | |
(github.event_name == 'release' && github.event.action == 'published') || | |
github.ref == 'refs/heads/main' || github.event_name == 'pull_request' | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
chart: | |
- fuel-streams-publisher | |
- fuel-nats | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Helm Dependencies Update For fuel-nats | |
run: | | |
cd cluster/charts/${{ matrix.chart }} && helm dependency update | |
- name: Package and Push Charts | |
uses: bsord/[email protected] | |
with: | |
useOCIRegistry: true | |
registry-url: oci://ghcr.io/fuellabs/helmcharts | |
username: ${{ github.repository_owner }} | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
chart-folder: ./cluster/charts/${{ matrix.chart }} |