Skip to content

Commit c6efc02

Browse files
authored
Merge pull request #2 from toriaezunama/master
Fix for regex cause CD to fail
2 parents 68cfa4f + 3c7780b commit c6efc02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ echo "cluster ${CLUSTER}"
2828
echo "domain ${DOMAIN}"
2929
echo "image ${IMAGE}:${TAG}"
3030

31+
REGEX="[a-zA-Z]+-[0-9]{1,5}"
32+
3133
## Deploy to staging if branch is develop, release, main or master
3234
## Note: infrastrucure branch is using master
3335
if [[ ${PR_REF} =~ ^refs/heads/(master|develop|release|main)$ ]]; then
@@ -37,7 +39,6 @@ if [[ ${PR_REF} =~ ^refs/heads/(master|develop|release|main)$ ]]; then
3739

3840
##
3941
# checking if this is a feature branch or release
40-
REGEX="[a-zA-Z]+-[0-9]{1,5}"
4142
elif [[ ${PR_REF} =~ ${REGEX} ]]; then
4243
##
4344
# If branch does not exist create it

0 commit comments

Comments
 (0)