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

Can I publish in another repo ? #22

Open
Fab-T opened this issue Apr 9, 2020 · 8 comments
Open

Can I publish in another repo ? #22

Fab-T opened this issue Apr 9, 2020 · 8 comments

Comments

@Fab-T
Copy link

Fab-T commented Apr 9, 2020

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

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

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

@Fab-T
Copy link
Author

Fab-T commented Apr 9, 2020

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 Fab-T closed this as completed Apr 9, 2020
@Fab-T Fab-T reopened this Apr 9, 2020
@estahn
Copy link

estahn commented Jun 30, 2020

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

@Fab-T
Copy link
Author

Fab-T commented Jun 30, 2020

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.

@MurzNN
Copy link

MurzNN commented Feb 8, 2022

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
Copy link

MurzNN commented Feb 8, 2022

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: #104

@RafalSkolasinski
Copy link

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

@isac322
Copy link

isac322 commented Dec 11, 2022

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

@orihomie
Copy link

orihomie commented Feb 2, 2023

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

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

6 participants