-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Push to npm only on tags * Make docker build on tag or branch commits and tag the images appropriately
- Loading branch information
1 parent
f6b7c1b
commit 0b013f0
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,15 @@ node_js: | |
- '0.10' | ||
before_install: | ||
- npm install -g npm@'>=2.13.5' | ||
after_success: | ||
- if [[ $TRAVIS_TAG ]]; then CURL_DATA='{"source_type":"Tag","source_name":"'"$TRAVIS_TAG"'"}'; else CURL_DATA='{"source_type":"Branch","source_name":"develop"}'; fi | ||
- "curl -H \"Content-Type: application/json\" --data \"$CURL_DATA\" -X POST https://registry.hub.docker.com/u/rocketchat/hubot-rocketchat/trigger/$PUSHTOKEN/" | ||
deploy: | ||
provider: npm | ||
email: [email protected] | ||
on: | ||
tags: true | ||
all_branches: true | ||
all_branches: false | ||
skip_cleanup: true | ||
api_key: | ||
secure: QV9PS3e+IR2gNBjG1d7Cw2xmWfFt2f/P4TXTdcjKty8ugypqau+2I/TM/NJ44yuTuRGde88U4E3vFqwt5du7BUqSgffkbF0VEh+Qh1iuWeqZWJCknmwKIk2YepDce+7/JZILfHnz2R3w9+sfixLe6NIyyl/92PAtZXMOqgobEZFaK2MotZihjBBHwmq86vHkf2ofx1PRkEooLhwvOvUeCXbJNYHYrdna43J9SX3aKlcWkiKRBqBNLm6Z70e8wA/EKRIj0/LJs+mrCbx1zQL/P7vj/ZCWmO3e6pBUjp7PO0Qp8CFBaDnhCU1akjZzoO/dqCWY+B5IJsOexAWD9zR9k1DS4QmuHvajCKCX5CMGqPsR9CSo67ZDpOdi9HhtYqTUHHKoAK4y0Fc/nxI9YPUZwvQWGe20meiodZEV2ttdfm3CRpAUyBen7D0ulEAyVmU0EZ+0iAnx8Y6kGp9EfgaZu5hCAmcHr94bM/w3rRWs+DW4cI4sve2e0Md9uzKaZ2HstcEGkLMskYkJJIpb8Yz6wJmWId7drgkymVnnFTH+WWIJmdiGSMNQcnMTmCm9WbVaNMk+6HMUyddvGbQfZ2JaebX49V4EhCKvXp9dtSyC1QnG9LFdC+T3QPW6cA7ijGbwuPsQyXPiVEIn+LxskF3SrjnDHaZ5TxdstVWnXj0Dh30= | ||
after_script: | ||
- if [[ $TRAVIS_TAG ]]; then CURL_DATA='{"source_type":"Tag","source_name":"'"$TRAVIS_TAG"'"}'; else CURL_DATA='{"source_type":"Branch","source_name":"'"$TRAVIS_BRANCH"'"}'; fi | ||
- "curl -H \"Content-Type: application/json\" --data \"$CURL_DATA\" -X POST https://registry.hub.docker.com/u/rocketchat/hubot-rocketchat/trigger/$PUSHTOKEN/" |