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

🚀 Helm Chart publish using Github Pages and actions #68

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

mhkarimi1383
Copy link
Member

@mhkarimi1383 mhkarimi1383 commented Mar 13, 2025

Closes #67

@mhkarimi1383 mhkarimi1383 requested a review from a team as a code owner March 13, 2025 09:57
git config user.email "[email protected]"

- name: Run chart-releaser
uses: helm/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this publish the release as well right?
How do we manage when to bump the chart version? On the other openebs repos we now do this via release branches, rather than develop, allowing for some more automated and manual testing before actually releasing.

Copy link
Member Author

@mhkarimi1383 mhkarimi1383 Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give me some example for that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can mark versions as pre (with a suffix) when it's not running on a tag
Or when running on a branch other than develop

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For that we have to refactor the entire CI pipelines that are related to build/publish to follow the branching that we want

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, let's do this simple approach for now and introduce branching strategy later on.
But meanwhile, am I correct to assume as soon as this is merged a new release v0.9.0 would be done? And if so, do we want to do that now, or is there anything else we might want to do before releasing that? (nothing I can think of as of now, asking just in case)

Signed-off-by: Muhammed Hussein karimi <[email protected]>
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
We are having a single helm chart so we don't need to include chart name

Signed-off-by: Muhammed Hussein Karimi <[email protected]>
@mhkarimi1383
Copy link
Member Author

I wasn't able to rebase because of conflicts :(

@tiagolobocastro
Copy link
Contributor

You need to resolve the conflicts when rebasing, especially since you're renaming files, you don't want to miss changes.
Maybe do the rename on a separate PR and just do the chart publish on this one?

@mhkarimi1383
Copy link
Member Author

You need to resolve the conflicts when rebasing, especially since you're renaming files, you don't want to miss changes.
Maybe do the rename on a separate PR and just do the chart publish on this one?

Yeah, but it's a bit hard since I'm creating my PRs from my own fork

In this PR I wanted to make the helm chart file structure the same as other projects and provided the yams installation option

@tiagolobocastro
Copy link
Contributor

You need to resolve the conflicts when rebasing, especially since you're renaming files, you don't want to miss changes.
Maybe do the rename on a separate PR and just do the chart publish on this one?

Yeah, but it's a bit hard since I'm creating my PRs from my own fork

In this PR I wanted to make the helm chart file structure the same as other projects and provided the yams installation option

I think should be fine as long as you squash when merging this

git config user.email "[email protected]"

- name: Run chart-releaser
uses: helm/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, let's do this simple approach for now and introduce branching strategy later on.
But meanwhile, am I correct to assume as soon as this is merged a new release v0.9.0 would be done? And if so, do we want to do that now, or is there anything else we might want to do before releasing that? (nothing I can think of as of now, asking just in case)

Signed-off-by: Muhammed Hussein Karimi <[email protected]>
@mhkarimi1383
Copy link
Member Author

@tiagolobocastro

Yeah, but before that we have to merge the fstype I think

Also I have created the first version of json schemas that I can push them to this branch :)

@mhkarimi1383
Copy link
Member Author

After that I will change the helm-docs template to include how to install helm chart using the repository

@mhkarimi1383
Copy link
Member Author

Before the release we have to also bump up the version of the project itself and create a tag from it to publish the image and bump up app version here

@mhkarimi1383
Copy link
Member Author

Sorry for spamming commits, It was a bit hard to solve conflict, will squash commits when merging with develop

with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the cache, it's not doing anything at the moment and if triggers warnings in the files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's remove that in another PR :)

@mhkarimi1383
Copy link
Member Author

If I merge this, It will create a helm chart related release

So, we have to do the left things that I said or merge?

Signed-off-by: Muhammed Hussein karimi <[email protected]>
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

Successfully merging this pull request may close these issues.

Publish HelmChart via CI
2 participants