Skip to content

Commit

Permalink
Not making a Docker release is we build develop (putting a tag will c…
Browse files Browse the repository at this point in the history
…reate a release which is more a controlled/intuitive way to make a release to Docker)

(cherry picked from commit e3e7ed0)
  • Loading branch information
nbaars committed Jan 2, 2018
1 parent 05d8b59 commit 5bbdb88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy-webgoat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5bbdb88

Please sign in to comment.