Skip to content

Commit

Permalink
push to docker after success
Browse files Browse the repository at this point in the history
  • Loading branch information
Scisco committed Oct 29, 2015
1 parent 0a936a6 commit 2bfb4aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ before_script:
script:
- docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests

after_success:
- docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
- docker push developmentseed/landsat-util:travis

deploy:
provider: pypi
user: devseed
Expand All @@ -19,11 +23,11 @@ deploy:
branch: master

after_deploy:
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Start Docker Hub Push"
VER=$(python -c "import landsat; print landsat.__version__")
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker build . -t developmentseed/landsat-util:$VER
docker push developmentseed/landsat-util:$VER
fi
docker push developmentseed/landsat-util:travis

0 comments on commit 2bfb4aa

Please sign in to comment.