All in one docker (#749)

* all-in-one Dockerfile preparations

* some cleanup

* add to main pom and add links in index.html

* updated deploy script from build pipeline

* additional line feed just in case
This commit is contained in:
René Zubcevic
2020-01-25 17:54:24 +01:00
committed by GitHub
parent 4e371b63d0
commit 9eee726eb5
9 changed files with 290 additions and 1 deletions

View File

@ -33,4 +33,17 @@ if [ ! -z "${TRAVIS_TAG}" ]; then
docker push $REPO
else
echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}"
fi
fi
export REPO=webgoat/goatandwolf
cd ..
cd docker
ls target/
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
else
echo "Skipping releasing to DockerHub because it is a build of branch ${BRANCH}"
fi