Make docker hub push optional in build
@@ -40,6 +40,8 @@ echo run docker containers using docker-compose:
docker-compose --tlsverify --tlscacert=/var/lib/jenkins/.docker/ca.pem --tlscert=/var/lib/jenkins/.docker/cert.pem --tlskey=/var/lib/jenkins/.docker/key.pem -H satvm01.researchstudio.at:2376 down
docker-compose --tlsverify --tlscacert=/var/lib/jenkins/.docker/ca.pem --tlscert=/var/lib/jenkins/.docker/cert.pem --tlskey=/var/lib/jenkins/.docker/key.pem -H satvm01.researchstudio.at:2376 up -d
+if [[ ${DEPLOY_TO_DOCKERHUB} ]]
+then
echo push automatically built webobofneeds images to docker hub
#
docker --tlsverify -H satvm01.researchstudio.at:2376 login --username=$DOCKER_USER --password=$DOCKER_PASS
@@ -52,3 +54,4 @@ docker --tlsverify -H satvm01.researchstudio.at:2376 push webofneeds/matcher_res
docker --tlsverify -H satvm01.researchstudio.at:2376 push webofneeds/solr:live
docker --tlsverify -H satvm01.researchstudio.at:2376 push webofneeds/postgres:live
docker --tlsverify -H satvm01.researchstudio.at:2376 push webofneeds/bots:live
+fi
\ No newline at end of file
