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

workflow proposal #41

Merged
merged 4 commits into from
Nov 26, 2022
Merged

workflow proposal #41

merged 4 commits into from
Nov 26, 2022

Conversation

kubealex
Copy link
Owner

Based on recent suggestions by @InputObject2 there's the proposal for a workflow to create, manage and build images for each release.

  • Added helm linting on PR open
  • Build and push for x86 and ARM versions to quay
  • uses Red Hat builder+pusher images to comply with OCI specs

id: bump-version
with:
github_token: ${{ secrets.GH_TOKEN }}
default_bump: false
Copy link
Contributor

@InputObject2 InputObject2 Nov 14, 2022

Choose a reason for hiding this comment

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

The container image would be changing and I don't think we want to overwrite existing image versions, why not generate a new patch version on each push to master?

This way we can stop manually bumping the version in the dockerfile and let Github handle the versionning.

Suggested change
default_bump: false
default_bump: patch

or just remove default_bump altogether since it's the default value

Copy link
Owner Author

Choose a reason for hiding this comment

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

Since every PR will need validation and approval, I think it's a good idea to keep control over the version increase and only bump the image if strictly necessary.
In my mind, a change in the README cannot be considered a version bump, or a typo in a description.
We could add a check, like "if the new tag is undefined, don't run the build job" but rebuilding and pushing the image won't affect the existing one.

Adding a variable in the helm chart is, as the image will be different, a new tag must be generated and a new image will be built and pushed.

@InputObject2
Copy link
Contributor

Fixes #38

Adding this so it auto-closes the BR on merge.

@kubealex kubealex merged commit a158d27 into master Nov 26, 2022
@kubealex kubealex deleted the feature/release-workflow branch November 26, 2022 14:41
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.

2 participants