Add GitHub Pages Helm repository distribution (#686)
GHCR OCI packages cannot be made public through any available mechanism: - Package doesn't appear in user/repo package lists - API endpoints return 404 - Workflow tokens lack package visibility permissions - Manual UI shows no packages to configure - OCI annotations don't link package to repository Implementing GitHub Pages Helm repo as canonical distribution method: - Uses chart-releaser-action to publish to gh-pages branch - Provides standard 'helm repo add' workflow without authentication - Maintains OCI push for future use if GHCR resolves visibility issues Resolves #686
This commit is contained in:
parent
0f78b681c8
commit
c667b2dee4
2 changed files with 55 additions and 0 deletions
52
.github/workflows/helm-pages.yml
vendored
Normal file
52
.github/workflows/helm-pages.yml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
name: Release Helm Chart to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
chart_version:
|
||||||
|
description: "Chart version (e.g., 4.28.0)"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
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: Install Helm
|
||||||
|
uses: azure/setup-helm@v4
|
||||||
|
with:
|
||||||
|
version: v3.15.2
|
||||||
|
|
||||||
|
- name: Determine chart version
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||||
|
VERSION="${{ inputs.chart_version }}"
|
||||||
|
else
|
||||||
|
VERSION="${{ github.event.release.tag_name }}"
|
||||||
|
VERSION="${VERSION#v}"
|
||||||
|
fi
|
||||||
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Run chart-releaser
|
||||||
|
uses: helm/chart-releaser-action@v1.6.0
|
||||||
|
with:
|
||||||
|
charts_dir: deploy/helm
|
||||||
|
config: cr.yaml
|
||||||
|
env:
|
||||||
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
CR_RELEASE_NAME_TEMPLATE: "{{ .Version }}"
|
||||||
3
cr.yaml
Normal file
3
cr.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
owner: rcourtman
|
||||||
|
git-repo: Pulse
|
||||||
|
charts-repo-url: https://rcourtman.github.io/Pulse
|
||||||
Loading…
Reference in a new issue