From 851fd9ae0379a4a715daa123636b8b873702eaf6 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sat, 23 May 2020 17:01:13 +0200 Subject: [PATCH] Only push to 1 Docker repo --- scripts/deploy-webgoat.sh | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/scripts/deploy-webgoat.sh b/scripts/deploy-webgoat.sh index 36504116a..3f9dfa4d4 100644 --- a/scripts/deploy-webgoat.sh +++ b/scripts/deploy-webgoat.sh @@ -1,32 +1,6 @@ #!/usr/bin/env bash docker login -u $DOCKER_USER -p $DOCKER_PASS -export REPO=webgoat/webgoat - -cd webgoat-server -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 - - -export REPO=webgoat/webwolf -cd .. -cd webwolf -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 webwolf_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 export REPO=webgoat/goatandwolf cd ..