Skip to content

Commit 907a342

Browse files
add changes for regex (#1429)
1 parent f6077ee commit 907a342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment/mergebranch-webhook-deployment/ServiceGroupRoot/Scripts/pushWebhookToAcr.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AZ_ACR_IMPORT_FORCE=""
2222

2323

2424
TAG="appmonitoring-$SOURCE_IMAGE_TAG-rc-$SOURCE_IMAGE_BUILD_ID"
25-
if [[ "$TAG" =~ ^appmonitoring-([^-]+(?:-[^-]+)*)-rc-[0-9]+$ ]]; then
25+
if [[ "$TAG" =~ ^appmonitoring-(.+)-rc-[0-9]+$ ]]; then
2626
WEBHOOK_IMAGE_TAG_SUFFIX="${BASH_REMATCH[1]}"
2727
echo "$WEBHOOK_IMAGE_TAG_SUFFIX" # Output: 1.0.0-beta.4
2828
else

0 commit comments

Comments
 (0)