update .travis.yml

fix release conditions
This commit is contained in:
etienne-napoleone 2018-08-21 16:20:30 +07:00
parent 9d78bda4c5
commit ecf29b3e60
No known key found for this signature in database
GPG key ID: 13183AEB698F46A9

View file

@ -40,6 +40,7 @@ jobs:
- kill %1 - kill %1
- stage: Github release - stage: Github release
go: '1.10'
script: script:
- make tomo-linux-amd64 - make tomo-linux-amd64
deploy: deploy:
@ -52,7 +53,7 @@ jobs:
branch: master branch: master
tags: true tags: true
- stage: Build and push untagged commit into image tomochain - stage: Build and push tomochain image (untagged)
services: services:
- docker - docker
install: skip install: skip
@ -68,7 +69,7 @@ jobs:
after_success: after_success:
- curl -X POST $INFRA_IMAGE_REBUILD_HOOK - curl -X POST $INFRA_IMAGE_REBUILD_HOOK
- stage: Build and push tagged commit into image tomochain - stage: Build and push tomochain image (tagged)
services: services:
- docker - docker
install: skip install: skip
@ -88,11 +89,11 @@ stages:
- name: Lint - name: Lint
- name: Build and test - name: Build and test
- name: Github release - name: Github release
if: type != pull_request AND branch = master AND tag IS present AND repo = tomochain/tomochain if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/tomochain
- name: Build and push untagged commit into image tomochain - name: Build and push tomochain image (untagged)
if: type != pull_request AND branch = master AND tag IS blank AND repo = tomochain/tomochain if: type != pull_request AND branch = master AND tag IS blank AND repo = tomochain/tomochain
- name: Build and push tagged commit into image tomochain - name: Build and push tomochain image (tagged)
if: type != pull_request AND branch = master AND tag IS present AND repo = tomochain/tomochain if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/tomochain
notifications: notifications:
slack: slack: