This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nmap specific priviliged image
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# WARNING!!!!! | ||
# THIS script differs from the other deployToDockerHub Scripts in the other repos! | ||
# This is to support the two build versions "default" and "privileged" | ||
|
||
echo "Docker Login" | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
echo "Pushing to Dockerhub" | ||
|
||
if [[ $TRAVIS_BRANCH =~ ^master$ ]] | ||
then | ||
echo "Develop Build: Pushing develop tag" | ||
|
||
echo "Develop Build: Tagging unstable image" | ||
# Also tagging master branch name to keep backwards compat | ||
echo $(docker tag $REPO:$TAG $REPO:master) | ||
echo $(docker tag $REPO:$TAG $REPO:unstable) | ||
echo $(docker tag $REPO:$TAG-privileged $REPO:unstable-privileged) | ||
echo $(docker tag $REPO:$TAG $REPO:unstable-$TRAVIS_BUILD_NUMBER) | ||
|
||
echo "Develop Build: Pushing unstable image" | ||
echo $(docker push $REPO:master) | ||
echo $(docker push $REPO:unstable) | ||
echo $(docker push $REPO:unstable-privileged) | ||
echo $(docker push $REPO:unstable-$TRAVIS_BUILD_NUMBER) | ||
elif [ "$TRAVIS_BRANCH" = "$TRAVIS_TAG" ] | ||
then | ||
echo "Tagged Release: Pushing versioned docker image." | ||
echo $(docker tag $REPO:$TAG $REPO:$TRAVIS_TAG) | ||
echo $(docker tag $REPO:$TAG-privileged $REPO:$TRAVIS_TAG-privileged) | ||
echo $(docker tag $REPO:$TAG $REPO:latest) | ||
|
||
echo $(docker push $REPO:$TRAVIS_TAG) | ||
echo $(docker push $REPO:$TRAVIS_TAG-privileged) | ||
echo $(docker push $REPO:latest) | ||
else | ||
echo "Feature Branch: Pushing only branch Tag" | ||
echo $(docker push $REPO:$TAG) | ||
fi | ||
fi |