Add Github token and fix conditions

This commit is contained in:
etienne-napoleone 2018-07-25 17:30:54 +07:00
parent cb6cb53bfc
commit 26afc88c9c
No known key found for this signature in database
GPG key ID: 13183AEB698F46A9

View file

@ -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