chore(ci): GHA - plugin builds require SemVer #878
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.
I wanted to avoid confusion between a git tag
X
building versionX
and amaster or release branch building version
X-dev-*
but it seems unavoidable.SemVer is required by plugins.
See constraint: https://github.com/spinnaker/kork/blob/5dc6bb98615667f1b4f3e18445c1651d773c9f6b/kork-plugins/src/main/kotlin/com/netflix/spinnaker/kork/plugins/SpinnakerServiceVersionManager.kt#L47
changes:
Convert
release.yml
to this method instead ofrun: git.. --unshallow
.tag, 'v1.2.3' -> '1.2.3' as required for Plugins (and Debians fwiw):
Caused by: Unexpected character 'LETTER(v)' at position '0', expecting '[DIGIT]'
-dev-<branch_name|'pr'>
to designate that it is not anofficial version. The short git SHA and date time are NOT present on
release versions (eg: 1.2.3) so that also differs.
pr.yml
as well so we might pick up versionissues in PR's and not just at merge.