chart-releaser-action icon indicating copy to clipboard operation
chart-releaser-action copied to clipboard

Can I publish in another repo ?

Open Fab-T opened this issue 6 years ago • 8 comments

Hi, I am trying to use the action from one repo and actually publish in another. I was trying with this option :

  • name: Run chart-releaser uses: helm/[email protected] env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" INPUT_CHARTS_REPO_URL: "https://Fab-T.github.io/test-helm-repo"

And it ends with Error : invalid references : gh-pages Indeed it tries to release in my current repo: test-helm Releasing charts...

  • cr index -o Fab-T -r test-helm -c https://Fab-T.github.io/test-helm

Can you please confirm it's possible and what should I do to solve my problem ? Thanks Fabien

Fab-T avatar Apr 09 '20 02:04 Fab-T

Looks like I should be using : with: charts_repo_url: "https://Fab-T.github.io/test-helm-repo"

yet it's failing to upload correctly as the option is not passed... And finally it failed on Index.

Would be nice to have the options from cr :-) Thanks

Fab-T avatar Apr 09 '20 03:04 Fab-T

We're just using another step:

      - name: Upload to ChartMuseum
        run: |
          if [ -d .cr-release-packages ]; then
            find .cr-release-packages -type f -exec curl --data-binary "@{}" --user "${{ secrets.CM_USER }}:${{ secrets.CM_PW }}" https://test.com/api/charts \;
          fi

estahn avatar Jun 30 '20 00:06 estahn

Thanks for your comment. There is indeed some changes needed to make it happen. I finally worked on a fork and modified few things to solve my problems. I broke some others so didn't go for a PR.

Fab-T avatar Jun 30 '20 13:06 Fab-T

I want to have same behavior to manage each chart in separate Git repo!

@Fab-T maybe you already finished your PR to some usable state, or it is still not ready?

MurzNN avatar Feb 08 '22 10:02 MurzNN

But I think that keeping releases (archives) directly in original repo would be better than publishing them to other external repo. And in Helm repository we can put direct links to released files in other repos, here is my feature request about this: https://github.com/helm/chart-releaser-action/issues/104

MurzNN avatar Feb 08 '22 10:02 MurzNN

I think I just stamp on something similar. I did hope that setting

          CR_OWNER: <owner>
          CR_GIT_REPO: <some other repo>
          CR_TOKEN:  < token for othe repo >

would simply just end up in release and gh-pages changes happening in the specified <some other repo> but that is not the case unfortunately

RafalSkolasinski avatar Jun 09 '22 13:06 RafalSkolasinski

I made it! but without this action. It release helm chart onto source repo (isac322/static-lb) and update index.yaml of chart repo (isac322/helm-charts)

https://github.com/isac322/static-lb/blob/7d694583ed29d475cd195e5766335b5308c5bdfa/.github/workflows/release-charts.yaml

isac322 avatar Dec 11 '22 13:12 isac322

@isac322 that looks great, could you please add a repo's readme to be shown under user.github.io/helm-charts/repo ?

orihomie avatar Feb 02 '23 10:02 orihomie