[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
parent
9dad19719e
commit
daba4d789f
|
@ -22,7 +22,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.env("CI_DOCS_BYPASS") != "true"
|
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
|
||||||
|
|
||||||
- wait:
|
- wait:
|
||||||
if: build.env("CI_DOCS_BYPASS") != "true"
|
if: build.env("CI_DOCS_BYPASS") != "true"
|
||||||
|
@ -33,11 +33,11 @@ steps:
|
||||||
if: build.env("CI_DOCS_BYPASS") != "true"
|
if: build.env("CI_DOCS_BYPASS") != "true"
|
||||||
|
|
||||||
- wait:
|
- wait:
|
||||||
if: build.env("CI_DOCS_BYPASS") != "true"
|
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
|
||||||
|
|
||||||
- label: ":chrome: Integration Tests"
|
- label: ":chrome: Integration Tests"
|
||||||
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.env("CI_DOCS_BYPASS") != "true"
|
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true"
|
||||||
EOF
|
EOF
|
Loading…
Reference in New Issue