diff --git a/.travis.yml b/.travis.yml index fcc38cf53c0aa9c49401a3f521231cc34bfcc666..8c9232de44725fcc60120f9d516f08fe81c3186b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,13 @@ before_script: script: - docker run -t -v $PWD:/app:ro badouralix/zunit zunit test +after_success: + # Notify Docker Hub to make a new build + # See https://stackoverflow.com/questions/34710513/how-can-i-update-full-description-on-docker-hub-automatically + - > + [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" ]] + && curl -X POST -H "Content-Type: application/json" --data '{"docker_tag_name": "latest"}' + https://registry.hub.docker.com/u/badouralix/oh-my-via/trigger/$DOCKER_HUB_TOKEN/ + # vim: ts=2 sw=2 sts=2