Automatically set Helm chart package visibility to public (related to #686)
The pulse-chart package in GHCR currently requires authentication for pulls because it defaults to private visibility. This affects all users trying to install via `helm install oci://ghcr.io/rcourtman/pulse-chart`. This commit adds a workflow step to automatically set the package to public after each push, enabling anonymous pulls without requiring `helm registry login`. Note: The existing package will need one-time manual configuration via GitHub web UI until the next release triggers this workflow. Related to discussion #686
This commit is contained in:
parent
13a469362a
commit
8f0a548e3d
1 changed files with 8 additions and 0 deletions
8
.github/workflows/publish-helm-chart.yml
vendored
8
.github/workflows/publish-helm-chart.yml
vendored
|
|
@ -82,6 +82,14 @@ jobs:
|
|||
helm push dist/pulse-${{ steps.versions.outputs.chart_version }}.tgz \
|
||||
oci://ghcr.io/${{ github.repository_owner }}/pulse-chart
|
||||
|
||||
- name: Make package public
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
# Set package visibility to public for anonymous pulls
|
||||
gh api -X PATCH /user/packages/container/pulse-chart -f visibility=public || \
|
||||
echo "Warning: Could not set package visibility. May need manual configuration."
|
||||
|
||||
- name: Attach chart to release
|
||||
if: github.event_name == 'release'
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue