[Buildkite] Fix pipeline regression for master deployments (#770)

Fixes the regression #766 introduced as when the `build.branch` is `master` `build.tag` is `""`.
pull/769/head^2
Amir Zarrinkafsh 2020-03-22 16:36:18 +11:00 committed by GitHub
parent 060b4a19f6
commit d95bda8cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ env:
steps: steps:
- label: ":hammer_and_wrench: Unit Test" - label: ":hammer_and_wrench: Unit Test"
command: "authelia-scripts --log-level debug ci" 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: - wait:
if: build.env("CI_DOCS_BYPASS") != "true" if: build.env("CI_DOCS_BYPASS") != "true"
@ -45,5 +45,5 @@ steps:
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
depends_on: depends_on:
- "build-docker-amd64" - "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 EOF