Skip to content

Commit

Permalink
Wrong image name mentioned in lesson for WebWolf
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaars committed Apr 11, 2018
1 parent 2ae1b49 commit 58d4b81
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions scripts/deploy-webgoat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ elif [ ! -z "${TRAVIS_TAG}" ]; then
#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


export REPO=webgoat/webwolf
cd ..
cd webwolf
ls target/

if [ "${BRANCH}" == "master" ] && [ ! -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 webwolf_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 webwolf_version=${TRAVIS_TAG:1} -f Dockerfile -t $REPO:${TRAVIS_TAG} -t $REPO:latest .
docker push $REPO
else
echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}"
fi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ java -jar webwolf-<<version>>.jar
WebWolf is also available as a Docker container:

```
docker pull webwolf/webwolf-8.0
docker pull webgoat/webwolf
docker run -it 8081:8081 /home/webwolf/run.sh
```

Expand Down

0 comments on commit 58d4b81

Please sign in to comment.