Skip to content

Publish helm chart to github pages #27

Open

Description

@mtparet

Pitch

The helm chart should be published so we can install it with classic helm command without having to clone the whole Maston repository. Also this will enable to list it at https://artifacthub.io/.

We could use the official tool https://github.com/helm/chart-releaser in the CI to publish it.

Activity

  1. christianhuth commented on Jun 13, 2022

    @christianhuth

    @mtparet: Do you know if anybody is working on this already?

  2. mtparet commented on Jun 13, 2022

    @mtparet
    Author

    @ChristianKnell I don't think so

  3. christianhuth commented on Jun 13, 2022

    @christianhuth

    @mtparet: I could set this up analog to my own chart repository here. We need to enable GitHub Pages for this. Can you do this or give me privileges to set this in the settings?

  4. deepy commented on Aug 8, 2022

    @deepy
    Contributor

    I gave this a try with a fork and https://github.com/helm/chart-releaser-action which seemed promising, but I couldn't get it to publish the releases on a separate repository.

    It almost feels like most tooling expects your charts to be in a repository that only contains charts and nothing else.

  5. christianhuth commented on Aug 9, 2022

    @christianhuth

    @deepy: Chart-Releaser is already the right way to go. :)

    That's not exactly true. But you're right that the most tooling expects another repository layout. They expect a folder charts on the root level and for each chart a single folder under this charts folder. So for mastodon it could be charts/mastodon. It doesn't matter that there are other folders/files inside the repository.

    Have a look at https://github.com/christianknell/helm-charts/blob/main/.github/workflows/chart-testing.yml and https://github.com/christianknell/helm-charts/blob/main/.github/workflows/release.yaml - you only need release2github. Should be quite straightforward to copy/modify after changing the repository structure.

    Make sure to setup GitHub Pages correctly beforehand. The chart-releaser will automatically publish the packaged chart to the GitHub Registry afterwards and update your GitHub Pages branch as well. Checkout my branch for details https://github.com/christianknell/helm-charts/tree/gh-pages. The index.yaml will be updated by the chart-releaser.

    After having a look at your fork i don't quite understand your remaining problems. The chart-releaser has successfully packages the charts and released them to your github repository: https://github.com/deepy/mastodon/releases. And also the index.yaml was created successfully: https://github.com/deepy/mastodon/blob/gh-pages/index.yaml

    I think we're good to go with your setup. 👍

  6. deepy commented on Aug 9, 2022

    @deepy
    Contributor

    The problem I'm having is that I don't want the releases in the mastodon repository (as they'd conflict with the current releases), I want the pages and the release pushed to a second repository: https://github.com/deepy/mastodon-charts/tree/gh-pages and while the configuration seems to suggest I can do this, I didn't get that to work :-(

  7. christianhuth commented on Aug 9, 2022

    @christianhuth

    @deepy what do you mean with conflict? As far as I know you can have mutliple different releases in one repository.

  8. deepy commented on Aug 10, 2022

    @deepy
    Contributor

    Mostly from a user perspective, given that helm seems to be the minority it'd probably be confusing to have two different kind of releases in the same repository, especially since the versions mean different things.

    But I suspect that some tinkering with cr could get it to easily publish the releases to another repository

  9. norman-zon commented on Nov 8, 2022

    @norman-zon
    Contributor

    Is there still work going on regarding the helm release?

  10. deepy commented on Nov 8, 2022

    @deepy
    Contributor

    There's nobody working on this specific issue, but there's a bunch of open PRs related to helm and some like mastodon/mastodon#19706 are basically needed for a successful deploy.

    But if you're just looking for a maintained helm repository I'm about to create one tonight so I can continue to maintain my setup

  11. deepy commented on Nov 8, 2022

    @deepy
    Contributor

    I've setup a repository containing builds of the chart from this repository https://charts.xd.cm/mastodon/
    It's not automatically built as a lot is happening in the chart lately and I don't want broken setups, but I'll work to keep both in sync.

  12. Sierra1011 commented on Jan 3, 2023

    @Sierra1011

    Just to expand a list of options for others, Bitnami also publishes a Mastodon HelmChart at https://github.com/bitnami/charts/tree/main/bitnami/mastodon/#installing-the-chart

  13. renchap commented on Feb 16, 2023

    @renchap
    SponsorMember

    Just to update you, this is on my list of things to do.

    It will probably come with some reorganisation of this chart (moving the current chart to charts/ as per convention, and probably splitting the chart with 1 Mastodon "base" chart, and a meta-chart which will include more dependencies to get a full install in one go.

  14. added
    enhancement
    on Feb 17, 2023
  15. deepy commented on Feb 18, 2023

    @deepy
    Contributor

    When this is done, would you be open to writing instructions on migrating to it from older charts?
    My helm repository is currently getting about a hundred unique pulls per month so I assume there's at least some instances using it

  16. jeremiahlee commented on Jun 30, 2023

    @jeremiahlee
    Contributor

    I support merging #54 to resolve this feature request. It would make using the chart much easier with Terraform and the Helm provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions