Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

Commit

Permalink
switch to triggering automated docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Feb 22, 2016
1 parent c8d7928 commit ba7f7c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before_install:
- npm install -g npm@3.7.2
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- ./scripts/docker/trigger.sh
node_js:
- "4.2"
env:
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker/trigger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ "$TRAVIS_BRANCH" == "master" ]; then
curl -H "Content-Type: application/json" --data '{"source_type": "Branch", "source_name": "master"}' -X POST https://registry.hub.docker.com/u/gravebot/gravebot/trigger/$DOCKER_TOKEN/;
fi

0 comments on commit ba7f7c0

Please sign in to comment.