Merge pull request #50 from DirectXMan12/infra/deploy-from-travis

[infra] automatically publish new images
This commit is contained in:
Solly Ross 2018-02-28 13:56:48 -05:00 committed by Solly Ross
commit df48f2aa63
2 changed files with 19 additions and 0 deletions

9
.travis-deploy.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -x
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
if [[ -n $TRAVIS_TAG ]]; then
make push VERSION=${TRAVIS_TAG}
else
make push-amd64
fi

View file

@ -21,3 +21,13 @@ script: make verify
cache: cache:
directories: directories:
- ~/.glide - ~/.glide
sudo: required
services:
- docker
deploy:
provider: script
script: bash .travis-deploy.sh
on:
branch: master