Skip to content

Commit 38d2459

Browse files
committed
slightly better travis
1 parent ae9b2a1 commit 38d2459

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ deploy:
1717
script: bash docker_push.sh
1818
skip_cleanup: true
1919
on:
20-
all_branches: true
20+
tags: true
21+
condition: -z "$TRAVIS_PULL_REQUEST_BRANCH"
22+
- provider: script
23+
script: bash docker_push.sh
24+
skip_cleanup: true
25+
on:
26+
branch: master
2127
condition: -z "$TRAVIS_PULL_REQUEST_BRANCH"
2228
# tags: true / false => has precendence over the branch condition
2329
# condition: "foo == bar && baz==bat"

0 commit comments

Comments
 (0)