File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff 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
4442env :
4543 global :
4644 # Docker login
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export REPO=webgoat/webgoat-8.0
66cd webgoat-server
77ls 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 ..
2727cd webwolf
2828ls 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
3834else
3935 echo " Skipping releasing to DockerHub because it is a build of branch ${BRANCH} "
4036fi
You can’t perform that action at this time.
0 commit comments