Last active
June 9, 2019 14:10
-
-
Save robvanderleek/ea02746fbe262314f32ed39bb5806047 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 -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:$TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment