Add travis build

This commit is contained in:
Josh Kunz
2019-03-12 22:58:30 -07:00
parent a8e258e5e2
commit b54671a9d5
2 changed files with 25 additions and 0 deletions

10
.travis/deploy-docker-hub Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -x
set -e
echo $DOCKER_HUB_PASSWORD | docker login -u $DOCKER_HUB_USER --password-stdin
docker tag $IMAGE_NAME $IMAGE_NAME:latest
docker tag $IMAGE_NAME $IMAGE_NAME:$TRAVIS_TAG
docker push $IMAGE_NAME:latest
docker push $IMAGE_NAME:$TRAVIS_TAG