Update .travis.yml Only run deploy stage when it's a push (not on PR)

This commit is contained in:
etienne-napoleone 2018-06-25 14:03:53 +07:00
parent 6a067abe00
commit 281320f4e9

View file

@ -55,7 +55,15 @@ jobs:
provider: script provider: script
script: bash docker_push.sh script: bash docker_push.sh
on: on:
branch: travis branch: master
- stage: Trigger rebuild of infrastructure image - stage: Trigger rebuild of infrastructure image
sudo: false sudo: false
script: bash docker_rebuild.sh script: bash docker_rebuild.sh
stages:
- name: Build and test
- name: Lint
- name: Build and push Docker image
if: type != pull_request AND branch = master
- name: Trigger rebuild of infrastructure image
if: type != pull_request AND branch = master