From e3e7ed004f9085457f5f442daeaae53f25389001 Mon Sep 17 00:00:00 2001 From: nbaars Date: Tue, 2 Jan 2018 22:19:49 +0100 Subject: [PATCH] Not making a Docker release is we build develop (putting a tag will create a release which is more a controlled/intuitive way to make a release to Docker) --- scripts/deploy-webgoat.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-webgoat.sh b/scripts/deploy-webgoat.sh index c0374ad37..652a0b9b0 100644 --- a/scripts/deploy-webgoat.sh +++ b/scripts/deploy-webgoat.sh @@ -14,9 +14,9 @@ elif [ ! -z "${TRAVIS_TAG}" ]; then # Creating a tag build we push it to Docker with that tag docker build --build-arg webgoat_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:${TRAVIS_TAG} -t $REPO:latest . docker push $REPO -elif [ "${BRANCH}" == "develop" ]; then - docker build -f Dockerfile -t $REPO:snapshot . - docker push $REPO +#elif [ "${BRANCH}" == "develop" ]; then +# docker build -f Dockerfile -t $REPO:snapshot . +# docker push $REPO else echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}" fi \ No newline at end of file