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

Release button #151

Merged
merged 6 commits into from
Aug 21, 2024
Merged

Release button #151

merged 6 commits into from
Aug 21, 2024

Conversation

didierofrivia
Copy link
Member

This PR introduces a new workflow for crafting a release, following the pattern used in Authorino Operator. It makes it convenient to trigger the workflow manually without the need to go through the process of creating a branch and manually triggering the make targets, committing and tagging.

It includes the building of both OLM manifests and Helm Charts.

@codecov-commenter
Copy link

codecov-commenter commented Aug 14, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.41%. Comparing base (5fde4c9) to head (92d0d51).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
- Coverage   85.91%   85.41%   -0.51%     
==========================================
  Files          19       19              
  Lines         994      994              
==========================================
- Hits          854      849       -5     
- Misses         92       95       +3     
- Partials       48       50       +2     
Flag Coverage Δ
integration 79.77% <ø> (-0.71%) ⬇️
unit 66.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1alpha1 (u) 100.00% <ø> (ø)
pkg/helpers (u) 83.87% <ø> (ø)
pkg/log (u) 94.73% <ø> (ø)
pkg/reconcilers (u) 74.67% <ø> (ø)
pkg/limitador (u) 98.11% <ø> (ø)
controllers (i) 76.66% <ø> (-1.67%) ⬇️
pkg/upgrades 88.88% <ø> (ø)

see 1 file with indirect coverage changes

Makefile Outdated Show resolved Hide resolved
@adam-cattermole
Copy link
Member

I would have approved this but given I reviewed and also made changes perhaps another reviewer should take a look

run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A && git commit -m "Prepared release v${{ inputs.limitadorOperatorVersion }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
git add -A && git commit -m "Prepared release v${{ inputs.limitadorOperatorVersion }}"
git add -A && git commit -s -m "Prepared release v${{ inputs.limitadorOperatorVersion }}"

Should we also sign off the commits to meeet the DCO requirement for commits? 🤔

Copy link
Member

@adam-cattermole adam-cattermole Aug 21, 2024

Choose a reason for hiding this comment

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

I'm curious if that will work with the github-actions[bot] configuration we have here and whether it'll count as verified or not but worth a shot - can fix later if not, more info here https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#signature-verification-for-bots

Unsure if there's a signing key present in the actions and how to configure git to use it

Copy link
Member Author

Choose a reason for hiding this comment

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

Will see soon enough if it's verified.. we might need to change it in authorino operator too in that case https://github.com/Kuadrant/authorino-operator/blob/main/.github/workflows/release.yaml#L58

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 this should be fine since it's not signing commits (which uses the uppercase -S argument) using a signing key. It's adding a commit sign-off like Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> which I think meets the DCO requirement 🤔 Will see will this works though

Makefile Outdated Show resolved Hide resolved
Copy link
Member

@adam-cattermole adam-cattermole left a comment

Choose a reason for hiding this comment

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

Nice, changes lgtm!

Copy link
Contributor

@KevFan KevFan left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@didierofrivia didierofrivia merged commit 79e484c into main Aug 21, 2024
16 checks passed
@didierofrivia didierofrivia deleted the release-button branch August 21, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants