Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3536fd0

Browse files
committed
Merge branch 'release/v8.0.0.M21'
2 parents 898dd90 + bc84e8f commit 3536fd0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ deploy:
2828
on:
2929
repo: WebGoat/WebGoat
3030
tags: true
31-
branch: master
3231
- provider: releases
3332
skip_cleanup: true
3433
overwrite: true
@@ -40,7 +39,6 @@ deploy:
4039
on:
4140
repo: WebGoat/WebGoat
4241
tags: true
43-
branch: master
4442
env:
4543
global:
4644
#Docker login

scripts/deploy-webgoat.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export REPO=webgoat/webgoat-8.0
66
cd webgoat-server
77
ls target/
88

9-
if [ "${BRANCH}" == "master" ] && [ ! -z "${TRAVIS_TAG}" ]; then
9+
if [ ! -z "${TRAVIS_TAG}" ]; then
1010
# If we push a tag to master this will update the LATEST Docker image and tag with the version number
1111
docker build --build-arg webgoat_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:latest -t $REPO:${TRAVIS_TAG} .
1212
docker push $REPO
@@ -27,14 +27,10 @@ cd ..
2727
cd webwolf
2828
ls target/
2929

30-
if [ "${BRANCH}" == "master" ] && [ ! -z "${TRAVIS_TAG}" ]; then
30+
if [ ! -z "${TRAVIS_TAG}" ]; then
3131
# If we push a tag to master this will update the LATEST Docker image and tag with the version number
3232
docker build --build-arg webwolf_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:latest -t $REPO:${TRAVIS_TAG} .
3333
docker push $REPO
34-
elif [ ! -z "${TRAVIS_TAG}" ]; then
35-
# Creating a tag build we push it to Docker with that tag
36-
docker build --build-arg webwolf_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:${TRAVIS_TAG} -t $REPO:latest .
37-
docker push $REPO
3834
else
3935
echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}"
4036
fi

0 commit comments

Comments
 (0)