We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68cfa4f + 3c7780b commit c6efc02Copy full SHA for c6efc02
entrypoint.sh
@@ -28,6 +28,8 @@ echo "cluster ${CLUSTER}"
28
echo "domain ${DOMAIN}"
29
echo "image ${IMAGE}:${TAG}"
30
31
+REGEX="[a-zA-Z]+-[0-9]{1,5}"
32
+
33
## Deploy to staging if branch is develop, release, main or master
34
## Note: infrastrucure branch is using master
35
if [[ ${PR_REF} =~ ^refs/heads/(master|develop|release|main)$ ]]; then
@@ -37,7 +39,6 @@ if [[ ${PR_REF} =~ ^refs/heads/(master|develop|release|main)$ ]]; then
37
39
38
40
##
41
# checking if this is a feature branch or release
-REGEX="[a-zA-Z]+-[0-9]{1,5}"
42
elif [[ ${PR_REF} =~ ${REGEX} ]]; then
43
44
# If branch does not exist create it
0 commit comments