Can I publish in another repo ?
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
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
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
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.
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?
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
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
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 that looks great, could you please add a repo's readme to be shown under user.github.io/helm-charts/repo ?