Optimise Travis build and deploy steps

These should only run on the master or tagged branches. This also means that while we are utilising Travis that there aren't long 20-30 blocks waiting on a PR to go green due to the build steps.
This commit is contained in:
Amir Zarrinkafsh 2020-01-02 18:03:08 +11:00 committed by Clément Michaud
parent d30f999628
commit 58734a9d7a

View File

@ -86,6 +86,7 @@ jobs:
- &build-images
stage: build images
if: branch = "master" && type != "pull_request" || branch =~ /^v/
env:
- ARCH=amd64
script:
@ -115,6 +116,7 @@ jobs:
env:
- ARCH=arm64v8
- stage: deploy manifests
if: branch = "master" && type != "pull_request" || branch =~ /^v/
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
script: