ci: update project version in nightly OCI #14067
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
The leading
vinPROJECT_VERSIONis breaking some tests thatparse the version returned by the broker.
Prior to #13890, the "nightly" OCI was built on every commit, and other workflows/tests
relied on those images. The OCI (Make) workflow sets the
PROJECT_VERSIONto a hardcodedvalue + a commit SHA. This PR mimics that behaviour for RabbitMQ project version.
There is one improvement: the semver part of the project version now follows the closest
(i.e. latest) tag on their respective branch. For example, OCIs from branch v4.0.x will follow
the tags for 4.0 releases e.g. 4.0.9, and use the tag as the semver component in the project version,
resulting in RabbitMQ reporting its version as
{tag}+{git-commit-sha}.mainis hard-coded to4.2.0, instead of following a tag.
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that apply