add testnet release channel

This commit is contained in:
etienne-napoleone 2018-09-17 17:16:40 +07:00
parent 7c7895a8d3
commit c1c8ed6a55
No known key found for this signature in database
GPG key ID: 13183AEB698F46A9

View file

@ -53,7 +53,7 @@ jobs:
branch: master branch: master
tags: true tags: true
- stage: Build and push latest images - stage: Build and push image
services: services:
- docker - docker
install: skip install: skip
@ -71,7 +71,7 @@ jobs:
- docker tag tomochain/node tomochain/node:$TRAVIS_BUILD_ID - docker tag tomochain/node tomochain/node:$TRAVIS_BUILD_ID
- docker push tomochain/node:$TRAVIS_BUILD_ID - docker push tomochain/node:$TRAVIS_BUILD_ID
- stage: Build and push tagged images - stage: Build and push image (tagged)
services: services:
- docker - docker
install: skip install: skip
@ -86,6 +86,8 @@ jobs:
- docker push tomochain/tomochain:$TRAVIS_TAG - docker push tomochain/tomochain:$TRAVIS_TAG
- docker tag tomochain/tomochain tomochain/node:latest - docker tag tomochain/tomochain tomochain/node:latest
- docker push tomochain/node:latest - docker push tomochain/node:latest
- docker tag tomochain/tomochain tomochain/node:testnet
- docker push tomochain/node:testnet
- docker tag tomochain/node tomochain/node:$TRAVIS_TAG - docker tag tomochain/node tomochain/node:$TRAVIS_TAG
- docker push tomochain/node:$TRAVIS_TAG - docker push tomochain/node:$TRAVIS_TAG
@ -94,9 +96,9 @@ stages:
- name: Build and test - name: Build and test
- name: Github release - name: Github release
if: type != pull_request AND branch =~ ^v 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 latest images - name: Build and push image
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 images - name: Build and push image (tagged)
if: type != pull_request AND branch =~ ^v 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: