Add label generation checking
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Closes https://git.autonomic.zone/coop-cloud/abra/issues/186.
This commit is contained in:
parent
78287fec37
commit
cdd196346a
|
@ -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
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
|
||||
|
|
Loading…
Reference in New Issue