Make Buildkite wait blocks conditional

This is so they do not appear on the Buildkite interface when their subsequent steps will not be executed.
This commit is contained in:
Amir Zarrinkafsh 2019-12-31 15:12:35 +11:00
parent fd53bbef2d
commit 7f7a3af60c

View File

@ -14,7 +14,8 @@ steps:
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
key: "test" key: "test"
- wait - wait:
if: build.branch == "master" || build.branch =~ /^v/
- label: ":docker: Image Builds" - label: ":docker: Image Builds"
command: ".buildkite/steps/buildimages.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/buildimages.sh | buildkite-agent pipeline upload"
@ -23,7 +24,8 @@ steps:
- "build" - "build"
key: "build-docker" key: "build-docker"
# - wait # - wait:
# if: build.branch == "master" || build.branch =~ /^v/
# #
# - label: ":docker: Image Deployments" # - label: ":docker: Image Deployments"
# command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" # command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload"
@ -32,7 +34,8 @@ steps:
# - "test" # - "test"
# - "build-docker" # - "build-docker"
# #
# - wait # - wait:
# if: build.branch == "master" || build.branch =~ /^v/
# #
# - label: ":docker: Deploy Manifests" # - label: ":docker: Deploy Manifests"
# command: "authelia-scripts docker push-manifest" # command: "authelia-scripts docker push-manifest"