[Buildkite] Optimise pipeline for deployments to master (#756)

Prior to this change all PR's which are merged into master would result in another run of the Unit and Integration testing.
This is not necessary because all steps have to pass for a PR to be accepted in to master, this will save significant time for deployments to master and reduce overall load to the Buildkite workers.
pull/753/head^2
Amir Zarrinkafsh 2020-03-20 14:03:50 +11:00 committed by GitHub
parent 9dad19719e
commit daba4d789f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ env:
steps:
- label: ":hammer_and_wrench: Unit Test"
command: "authelia-scripts --log-level debug ci"
if: build.env("CI_DOCS_BYPASS") != "true"
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
- wait:
if: build.env("CI_DOCS_BYPASS") != "true"
@ -33,11 +33,11 @@ steps:
if: build.env("CI_DOCS_BYPASS") != "true"
- wait:
if: build.env("CI_DOCS_BYPASS") != "true"
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
- label: ":chrome: Integration Tests"
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
depends_on:
- "build-docker-amd64"
if: build.env("CI_DOCS_BYPASS") != "true"
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
EOF