forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Semver version validation (gravitational#30480)
Tagging a release with an invalid semver string (especially an almost-but- not-quite-valid semver string) can cause an incorrect environment to be selected when publishing packages during promotion, with the attendant risk of polluting production artefact repositories. This change attempts to force the use of correctly-formed semver strings by - validating the semver string on application (i.e. as part of make version) - validating that the GITTAG value used to trigger a build is valid semver, and - as a harm reduction measure, changing the semver check tool to interpret an invalid semver string as if it had pre-release or build metadata. This is a backstop, just in case a malformed tag sneaks through outside of our automation. Changelog: none
- Loading branch information
Showing
4 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters