Skip to content

ci(updated-ghw-pin): updated with pin (#336) #12

ci(updated-ghw-pin): updated with pin (#336)

ci(updated-ghw-pin): updated with pin (#336) #12

name: publish-bluefin-helm-chart
on:
push:
branches: ['main']
paths: ['charts/bluefin/**','.github/workflows/publish-bluefin-helm-chart.yml']
jobs:
build-and-push-bluefin-helm-chart:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
with:
version: v3.18.3
- name: Package and upload chart
shell: bash
env:
REGISTRY: "ghcr.io"
REPOSITORY: "${{ github.repository }}"
TOKEN: "${{ secrets.GITHUB_TOKEN }}"
USER: "${{ github.repository_owner }}"
run: |
rm -rf dist
mkdir dist
helm package charts/bluefin/ -d dist/
echo "${TOKEN}" | helm registry login "${REGISTRY}" -u "${USER}" --password-stdin
for file in dist/*; do
helm push "$file" "oci://${REGISTRY}/${REPOSITORY,,}/charts"
done