Skip to content

Add explicit Helm registry login for OCI chart publishing - #10

Merged
Breee merged 2 commits into
mainfrom
copilot/publish-helm-chart-as-oci-package
May 25, 2026
Merged

Add explicit Helm registry login for OCI chart publishing#10
Breee merged 2 commits into
mainfrom
copilot/publish-helm-chart-as-oci-package

Conversation

Copilot AI commented May 25, 2026

Copy link
Copy Markdown
Contributor

Helm chart should be published as an OCI package on every release, versioned from the git tag (ignoring Chart.yaml version).

The release workflow already had helm package --version + helm push to GHCR OCI, but relied on implicit credential sharing from docker/login-action. Added explicit helm registry login before push to ensure reliable OCI authentication in CI:

echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
helm package charts/drop --version "${VERSION#v}" --app-version "${VERSION#v}"
helm push drop-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts

Chart is published to oci://ghcr.io/breee/charts/drop:<version> on each release.

Copilot AI linked an issue May 25, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Publish helm chart as OCI package on release Add explicit Helm registry login for OCI chart publishing May 25, 2026
Copilot finished work on behalf of Breee May 25, 2026 21:39
Copilot AI requested a review from Breee May 25, 2026 21:39
@Breee

Breee commented May 25, 2026

Copy link
Copy Markdown
Member

@copilot but there is no helm chart published yet I think? I did not find one in the packages

Copilot AI commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@copilot but there is no helm chart published yet I think? I did not find one in the packages

The chart won't appear in packages until this PR is merged and the release workflow actually runs. The workflow triggers on:

  1. Tag push (v*)
  2. Weekly schedule (Mondays 06:00 UTC)
  3. Manual dispatch (Actions tab → "Run workflow")

After merging, you can either push a new tag (git tag v0.x.x && git push origin v0.x.x) or trigger it manually from the Actions tab with force: true to publish the first chart to oci://ghcr.io/breee/charts/drop.

Copilot finished work on behalf of Breee May 25, 2026 21:48
@Breee
Breee marked this pull request as ready for review May 25, 2026 21:50
@Breee
Breee merged commit 85d0b8d into main May 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish helm chart

2 participants