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