Skip to content

Commit

Permalink
Merge branch 'release/v8.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaars committed May 23, 2020
2 parents bd16fed + 61720b2 commit a4f7059
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
39 changes: 17 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,23 @@ before_deploy:
- cp -fa $WEBWOLF_TARGET_DIR/*.jar $WEBGOAT_ARTIFACTS_FOLDER/
- echo "Contents of artifacts folder:"
- ls $WEBGOAT_ARTIFACTS_FOLDER
jobs:
include:
- stage: deploy
if: branch = master AND env(TRAVIS_TAG) IS present
jdk: openjdk11
skip_cleanup: true
script: bash scripts/deploy-webgoat.sh
on:
repo: WebGoat/WebGoat
tags: true
- stage: releases
if: branch = master AND env(TRAVIS_TAG) IS present
jdk: openjdk11
skip_cleanup: true
overwrite: true
api_key:
secure: pJOLBnl6427PcVg/tVy/qB18JC7b8cKpffau+IP0pjdSt7KUfBdBY3QuJ7mrM65zRoVILzggLckaew2PlRmYQRdumyWlyRn44XiJ9KO4n6Bsufbz+ictB4ggtozpp9+I9IIUh1TmqypL9lhkX2ONM9dSHmyblYpAAgMuYSK8FYc=
file_glob: true
file: "$WEBGOAT_ARTIFACTS_FOLDER/*"
on:
repo: WebGoat/WebGoat
tags: true
deploy:
- provider: script
jdk: openjdk11
skip_cleanup: true
script: bash scripts/deploy-webgoat.sh
on:
tags: true
- provider: releases
jdk: openjdk11
skip_cleanup: true
overwrite: true
api_key:
secure: pJOLBnl6427PcVg/tVy/qB18JC7b8cKpffau+IP0pjdSt7KUfBdBY3QuJ7mrM65zRoVILzggLckaew2PlRmYQRdumyWlyRn44XiJ9KO4n6Bsufbz+ictB4ggtozpp9+I9IIUh1TmqypL9lhkX2ONM9dSHmyblYpAAgMuYSK8FYc=
file_glob: true
file: "$WEBGOAT_ARTIFACTS_FOLDER/*"
on:
tags: true
env:
global:
#Docker login
Expand Down
7 changes: 0 additions & 7 deletions scripts/deploy-webgoat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ if [ ! -z "${TRAVIS_TAG}" ]; then
# If we push a tag to master this will update the LATEST Docker image and tag with the version number
docker build --build-arg webgoat_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:latest -t $REPO:${TRAVIS_TAG} .
docker push $REPO
#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
else
echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}"
fi
Expand Down

0 comments on commit a4f7059

Please sign in to comment.