From 281320f4e91fcdbac074d5bffcbac0af4b8b5709 Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Mon, 25 Jun 2018 14:03:53 +0700 Subject: [PATCH] Update .travis.yml Only run deploy stage when it's a push (not on PR) --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a46d628910..979e684306 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,15 @@ jobs: provider: script script: bash docker_push.sh on: - branch: travis + branch: master - stage: Trigger rebuild of infrastructure image sudo: false 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