File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ definitions:
163163 - docker
164164 script :
165165 - export HASH_COMMIT=${BITBUCKET_COMMIT:0:8}
166- - export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | awk -F'/ ' '{if(NF==1)val=$1; else if(NF==2)val=$1"--"$2; else if(NF==3)val=$2; else if(NF==4)val=$2"--"$3; print tolower(val)} ')
166+ - export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | tr '[:upper:] ' '[:lower:]' | sed 's|/|--|g ')
167167 - docker build -f ./dspace/src/main/docker/dspace-solr/Dockerfile -t solr8:${BRANCH_NAME}-${HASH_COMMIT} -t solr8:${BRANCH_NAME}-latest .
168168 - pipe : atlassian/aws-ecr-push-image:2.5.0
169169 variables :
@@ -185,7 +185,7 @@ definitions:
185185 - docker
186186 script :
187187 - export HASH_COMMIT=${BITBUCKET_COMMIT:0:8}
188- - export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | awk -F'/ ' '{if(NF==1)val=$1; else if(NF==2)val=$1"--"$2; else if(NF==3)val=$2; else if(NF==4)val=$2"--"$3; print tolower(val)} ')
188+ - export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | tr '[:upper:] ' '[:lower:]' | sed 's|/|--|g ')
189189 - docker build -f ./dspace/src/main/docker/dspace-solr/Dockerfile9 -t solr9:${BRANCH_NAME}-${HASH_COMMIT} -t solr9:${BRANCH_NAME}-latest .
190190 - pipe : atlassian/aws-ecr-push-image:2.5.0
191191 variables :
You can’t perform that action at this time.
0 commit comments