From 26afc88c9c6d657c356282df193caa1a8d4307be Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Wed, 25 Jul 2018 17:30:54 +0700 Subject: [PATCH] Add Github token and fix conditions --- .travis.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff55abe02d..e12616cb0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,14 +44,17 @@ jobs: - stage: Github release deploy: provider: releases - api_key: "GITHUB OAUTH TOKEN" - file: - - "build/bin/*" + api_key: $GITHUB_TOKEN # name: # body: (formating not preserved) # prerelease: true # draft: true + file: + - "build/bin/tomo" skip_cleanup: true + on: + branch: master + tags: true - stage: Build and push Docker image services: @@ -66,7 +69,7 @@ jobs: - bash docker_push.sh $TRAVIS_BUILD_ID on: branch: master - condition: tags = false + tags: false deploy: provider: script script: @@ -74,7 +77,7 @@ jobs: - bash docker_push.sh $TRAVIS_TAG on: branch: master - condition: tags = true + tags: true - stage: Trigger rebuild of infrastructure image sudo: false