Skip to content

Commit 85d0b8d

Browse files
authored
Merge pull request #10 from Breee/copilot/publish-helm-chart-as-oci-package
Add explicit Helm registry login for OCI chart publishing
2 parents 170e131 + 0b854ff commit 85d0b8d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ jobs:
160160
if: steps.changes.outputs.skip != 'true'
161161
run: |
162162
VERSION=${{ steps.version.outputs.version }}
163-
helm package charts/drop --version ${VERSION#v} --app-version ${VERSION#v}
163+
echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
164+
helm package charts/drop --version "${VERSION#v}" --app-version "${VERSION#v}"
164165
helm push drop-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
165166
166167
- name: Create GitHub Release

0 commit comments

Comments
 (0)