mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Add Github token and fix conditions
This commit is contained in:
parent
cb6cb53bfc
commit
26afc88c9c
1 changed files with 8 additions and 5 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -44,14 +44,17 @@ jobs:
|
||||||
- stage: Github release
|
- stage: Github release
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: "GITHUB OAUTH TOKEN"
|
api_key: $GITHUB_TOKEN
|
||||||
file:
|
|
||||||
- "build/bin/*"
|
|
||||||
# name:
|
# name:
|
||||||
# body: (formating not preserved)
|
# body: (formating not preserved)
|
||||||
# prerelease: true
|
# prerelease: true
|
||||||
# draft: true
|
# draft: true
|
||||||
|
file:
|
||||||
|
- "build/bin/tomo"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
tags: true
|
||||||
|
|
||||||
- stage: Build and push Docker image
|
- stage: Build and push Docker image
|
||||||
services:
|
services:
|
||||||
|
|
@ -66,7 +69,7 @@ jobs:
|
||||||
- bash docker_push.sh $TRAVIS_BUILD_ID
|
- bash docker_push.sh $TRAVIS_BUILD_ID
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
condition: tags = false
|
tags: false
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script:
|
script:
|
||||||
|
|
@ -74,7 +77,7 @@ jobs:
|
||||||
- bash docker_push.sh $TRAVIS_TAG
|
- bash docker_push.sh $TRAVIS_TAG
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
condition: tags = true
|
tags: true
|
||||||
|
|
||||||
- stage: Trigger rebuild of infrastructure image
|
- stage: Trigger rebuild of infrastructure image
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue