Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Remove nmap specific priviliged image
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 authored Jan 20, 2020
1 parent 08f11ed commit 4524261
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .travis/deployDockerHub.sh
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

0 comments on commit 4524261

Please sign in to comment.