Publish Helm chart to GHCR OCI registry #4

Merged
cpfarhood merged 1 commits from feat/helm-oci-publish into main 2026-02-20 12:16:35 +00:00
+37
View File
@@ -0,0 +1,37 @@
name: Publish Helm Chart
on:
push:
branches:
- main
paths:
- 'chart/**'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Log in to GHCR
run: |
helm registry login ghcr.io \
--username ${{ github.actor }} \
--password ${{ secrets.GITHUB_TOKEN }}
- name: Package chart
run: helm package chart/
- name: Push chart to GHCR
run: |
CHART_VERSION=$(helm show chart chart/ | grep '^version:' | awk '{print $2}')
helm push antigravity-${CHART_VERSION}.tgz oci://ghcr.io/cpfarhood/charts