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