From 7f7a3af60c5bc110e4116fd50165bcbf8c0b8df2 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 31 Dec 2019 15:12:35 +1100 Subject: [PATCH] Make Buildkite wait blocks conditional This is so they do not appear on the Buildkite interface when their subsequent steps will not be executed. --- .buildkite/pipeline.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index ac0fc0737..5999bbc2a 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -14,7 +14,8 @@ steps: command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" key: "test" - - wait + - wait: + if: build.branch == "master" || build.branch =~ /^v/ - label: ":docker: Image Builds" command: ".buildkite/steps/buildimages.sh | buildkite-agent pipeline upload" @@ -23,7 +24,8 @@ steps: - "build" key: "build-docker" -# - wait +# - wait: +# if: build.branch == "master" || build.branch =~ /^v/ # # - label: ":docker: Image Deployments" # command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" @@ -32,7 +34,8 @@ steps: # - "test" # - "build-docker" # -# - wait +# - wait: +# if: build.branch == "master" || build.branch =~ /^v/ # # - label: ":docker: Deploy Manifests" # command: "authelia-scripts docker push-manifest"