Skip to content
Snippets Groups Projects
Commit fa5b64b8 authored by Ayaz Badouraly's avatar Ayaz Badouraly
Browse files

Triggering image build on Docker Hub after successful travis build

parent 69a89a80
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment