-
Notifications
You must be signed in to change notification settings - Fork 238
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
Use auto bump functionality in release charts #3365
Conversation
1c8fb94
to
d3aa8d5
Compare
88cccbf
to
e372e2f
Compare
e372e2f
to
7779cf6
Compare
Github actions by default provides a field for selecting the working branch and this is used for checking out the according branches.
75ae6b6
to
94f3858
Compare
Pull request was converted to draft
c92998c
to
e416fc9
Compare
because parts of the latest Rancher doe not support kubernetes 1.32 by annotation.
e416fc9
to
fe46617
Compare
find ./packages/fleet/ -type f -exec sed -i -e "s/version: ${PREV_CHART_VERSION}/version: ${NEW_CHART_VERSION}/g" {} \; | ||
if [[ "$(git rev-parse --abbrev-ref HEAD)" =~ dev-v2\.1[0-9]+ ]]; then | ||
# Use new auto bump scripting until the Github action CI works as expected | ||
# no parameters besides the target branch are needed in theory, but the pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand this comment, as those parameters seem to be very much required 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As soon as the auto bump works as expected we do not need this script anymore to bump the charts.
I am using the command make chart-bump package=fleet branch="$(git rev-parse --abbrev-ref HEAD)"
of the auto bump automation which extracts the latest fleet and chart version on its own, so nothing needs to be provided.
But since there was an issue we rely on our script which still needs these values for creating the pr. It would be possible to extract them too, but not worth it since it should be not needed in the future.
until the issue is fixed in the charts Github action.
Succesful run
The release charts action will be obsolete as soon as Rancher 2.9 is EOL and the auto bump part works for later Rancher versions as expected.
It does already for Rancher 2.10.