benc-uk / kubeview

Kubernetes cluster visualiser and graphical explorer

Home Page:http://kubeview.benco.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discussion: Chart releasing (use gh-pages branch)

mkilchhofer opened this issue · comments

Hi

I noticed the *.tgz files inside /charts directory (https://github.com/benc-uk/kubeview/tree/master/charts). Do you use the GitHub Pages feature for this repository (especially the branch gh-pages)?
Is there a reason, why you don't use a separate GitHub Action for this? Eg. you could use the helm-chart-releaser action.

Hi,
It's because the repo is indexed by Artifact Hub https://artifacthub.io/packages/helm/kubeview/kubeview

It is done via GitHub actions here https://github.com/benc-uk/kubeview/blob/master/.github/workflows/docker-release.yml
I use actions/upload-release-asset@v1 to push the tgz file back into the repo

Yup, but the *.tgz are also available inside the releases and can be downloaded through a url like

https://github.com/<user>/<project>/releases/download/<releaseName>/<artifact>.tgz

You could put that in the index.yaml. Instead of specifying a relative *.tgz, you could do:

    urls:
-    - kubeview-0.1.20.tgz
+    - https://github.com/benc-uk/kubeview/releases/download/0.1.20/kubeview-0.1.20.tgz

The mentioned action would do this for you out-of-the-box :)

Thanks
I'm happy with how it's set up, it's working ok. Not broken so I don't want to fix.