Add label generation checking
continuous-integration/drone/push Build is passing Details

Closes #186.
This commit is contained in:
decentral1se 2021-07-06 12:27:06 +02:00
parent 78287fec37
commit cdd196346a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@
- Support overriding `$ARGS` from `abra.sh` custom commands and error out correctly when these commands fail ([#1](https://github.com/Coop-Cloud/peertube/issues/1))
- Add `abra <app> restart <service>` to support restarting individual services ([#200](https://git.autonomic.zone/coop-cloud/abra/issues/200))
- Output changes when asking to commit during release logic ([3f0a907b5](https://git.autonomic.zone/coop-cloud/rocketchat/commit/3f0a907b57acf960d6befab3d943982d956e2474))
- Add validation for generated output when making new release labels ([#186](https://git.autonomic.zone/coop-cloud/abra/issues/186))
# abra 9.0.0 (2021-06-10)

5
abra
View File

@ -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