.github
.mvn
config
docker
docs
platformQuickStarts
scripts
build-all.sh
build_docker.sh
clean-run-docker-compose.sh
deploy-webgoat.sh
run-docker-compose.sh
start.sh
webgoat-container
webgoat-images
webgoat-integration-tests
webgoat-lessons
webgoat-server
webwolf
.gitignore
COPYRIGHT.txt
CREATE_RELEASE.MD
LICENSE.txt
README.MD
RELEASE_NOTES.md
buildspec.yml
docker-compose-local.yml
docker-compose-postgres.yml
docker-compose.yml
goat-with-reverseproxy.yaml
mvn-debug
mvnw
mvnw.cmd
pom.xml
17 lines
490 B
Bash
17 lines
490 B
Bash
#!/usr/bin/env bash
|
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
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
|