-
-
Save rrmerugu/06049d798abb9c7e588adb7b236bc6db to your computer and use it in GitHub Desktop.
Buzz generator deploy to DockerHub script
This file contains hidden or 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
#!/bin/sh | |
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS | |
if [ "$TRAVIS_BRANCH" = "master" ]; then | |
TAG="latest" | |
else | |
TAG="$TRAVIS_BRANCH" | |
fi | |
docker build -f Dockerfile -t $TRAVIS_REPO_SLUG:$TAG . | |
docker push $TRAVIS_REPO_SLUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment