Skip to content

Commit

Permalink
Fix deploy on tags (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Jun 5, 2017
1 parent 00fbfa8 commit 0e66ba1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
provider: script
script: chmod +x scripts/deploy.sh && scripts/deploy.sh
skip_cleanup: true
on:
condition: $TRAVIS_BRANCH == "master" || -n $TRAVIS_TAG
- provider: script
script: chmod +x scripts/deploy.sh && scripts/deploy.sh
skip_cleanup: true
on:
branch: master
- provider: script
script: chmod +x scripts/deploy.sh && scripts/deploy.sh
skip_cleanup: true
on:
tags: true
4 changes: 2 additions & 2 deletions conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ scripts:
docker push ${CONFORM_IMAGE}
if [ ${CONFORM_IS_TAG} == "true" ]; then
docker tag ${CONFORM_IMAGE} autonomy/conform:${CONFORM_TAG}
docker push autonomy/conform:${CONFORM_TAG}
docker tag ${CONFORM_IMAGE} autonomy/conform:${CONFORM_TAG:1}
docker push autonomy/conform:${CONFORM_TAG:1}
if [ ${CONFORM_PRERELEASE} == "" ]; then
docker tag ${CONFORM_IMAGE} autonomy/conform:latest
docker push autonomy/conform:latest
Expand Down

0 comments on commit 0e66ba1

Please sign in to comment.