Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for pushing charts to oci (ghcr) #107

Open
dmccaffery opened this issue May 6, 2022 · 1 comment
Open

feat: add support for pushing charts to oci (ghcr) #107

dmccaffery opened this issue May 6, 2022 · 1 comment

Comments

@dmccaffery
Copy link

Add support for pushing charts to GHCR in addition to releases.

As of helm v3.8.0, oci support is now generally available.

Dependency: helm/chart-releaser#183

@acuD1
Copy link
Contributor

acuD1 commented May 27, 2024

This PR (#143) should solve this issue. Just need to add --skip-upload.

There is a snippet from my CI workflow:

      - name: Run chart-releaser
        uses: acuD1/chart-releaser-action@main
        with:
          skip_upload: true
        env:
          CR_TOKEN: "${{ secrets.CI_TOKEN }}"

      - name: Login to GHCR
        uses: acuD1/login-action@master
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.CI_TOKEN }}
          
      - name: Push Charts to GHCR
        run: |
          for pkg in .cr-release-packages/*; do
            if [ -z "${pkg:-}" ]; then
              break
            fi
            helm push "${pkg}" oci://ghcr.io/${{ env.REPOSITORY_OWNER }}/${{ env.REPOSITORY }}
          done

Until it's fully released (#186) you can use my branch.

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

No branches or pull requests

2 participants