Skip to content

Commit 7107b83

Browse files
author
Tobias Schneck
committed
update env_dockerhub for build
1 parent fcb8d0e commit 7107b83

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.build/env_dockerhub.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33

44
echo "branch= $GIT_BRANCH"
55
GIT_BRANCH=${GIT_BRANCH/origin\/}
6-
echo "DOCKER_TAG=${GIT_BRANCH/feature\/#}" > $WORKSPACE/myjob.properties
6+
DTAG="${GIT_BRANCH/feature\/#}"
7+
if [[ $DTAG == "master" ]] ; then
8+
DTAG=latest
9+
fi
10+
echo "DOCKER_TAG=$DTAG"
11+
echo "DOCKER_TAG=$DTAG" > $WORKSPACE/myjob.properties

0 commit comments

Comments
 (0)