Add label generation checking
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Closes https://git.autonomic.zone/coop-cloud/abra/issues/186.
This commit is contained in:
5
abra
5
abra
@ -2283,6 +2283,11 @@ sub_recipe_release() {
|
||||
error "Hmm, something went wrong generating a new version number.."
|
||||
fi
|
||||
|
||||
local -a expected_format="^coop-cloud.[a-z]*.[a-z]*.[a-z]*=v\\d*.\\d*.\\d*-\\S{8}"
|
||||
if [[ ! "$new_version" =~ $expected_format ]]; then
|
||||
error "'$new_version' does not match the expected label format, bailing out..."
|
||||
fi
|
||||
|
||||
success "All compose files updated; new version is $new_version"
|
||||
|
||||
if [ "$abra___no_prompt" = "false" ] && [ "$bump" = "false" ]; then
|
||||
|
Reference in New Issue
Block a user