Skip to content

Commit 9d5d85f

Browse files
author
Tobias Schneck
committed
update
1 parent 83d8e6e commit 9d5d85f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.build/env_dockerhub.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
echo "branch= $GIT_BRANCH"
55
GIT_BRANCH=${GIT_BRANCH/origin\/}
66
DTAG="${GIT_BRANCH/feature\/#}"
7-
if [[ $DTAG == "master" ]] ; then
8-
DTAG=latest
9-
fi
10-
echo "DOCKER_TAG=$DTAG"
117

8+
echo "DOCKER_TAG=$DTAG"
129
### will be read out by jenkins
1310
echo "DOCKER_TAG=$DTAG" > $WORKSPACE/myjob.properties

.build/trigger_dockerhub.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ URLS=(
99
"https://registry.hub.docker.com/u/consol/ubuntu-icewm-vnc/trigger/c73f3c3f-ecc3-46b1-9766-46c7dfca4d16/"
1010
"https://registry.hub.docker.com/u/consol/centos-icewm-vnc/trigger/3ea59f8b-364a-4a31-b1f3-aa0201f321d2/"
1111
)
12-
PAYLOAD='{"docker_tag": "'$DOCKER_TAG'"}'
12+
PAYLOAD='{"source_type": "Tag", "source_name": "'$GIT_TAG'"}'
13+
1314
#Loop
1415
for URL in "${URLS[@]}"
1516
do

0 commit comments

Comments
 (0)