From d95bda8cdc524a2c4833c27c23d485ff7fb3f2e9 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Sun, 22 Mar 2020 16:36:18 +1100 Subject: [PATCH] [Buildkite] Fix pipeline regression for master deployments (#770) Fixes the regression #766 introduced as when the `build.branch` is `master` `build.tag` is `""`. --- .buildkite/pipeline.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index 01ed23e3a..c7921bdac 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -28,7 +28,7 @@ env: steps: - label: ":hammer_and_wrench: Unit Test" command: "authelia-scripts --log-level debug ci" - if: (build.branch != "master" || build.tag !~ /^v.*/) && build.env("CI_DOCS_BYPASS") != "true" + if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_DOCS_BYPASS") != "true" - wait: if: build.env("CI_DOCS_BYPASS") != "true" @@ -45,5 +45,5 @@ steps: command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" depends_on: - "build-docker-amd64" - if: (build.branch != "master" || build.tag !~ /^v.*/) && build.env("CI_DOCS_BYPASS") != "true" + if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_DOCS_BYPASS") != "true" EOF