feat(ops/pipelines): Check in the static pipeline
This file represents the static pipeline which is configured in the Buildkite web UI. Updates to this file should be applied in the admin interface. These steps are responsible for launching the dynamic pipeline evaluation, or falling back to the fallback pipeline if evaluation fails. Change-Id: I6d7dd623cde65e8c69faea729f737c9bba00c2fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/2103 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
1857334d37
commit
73c862279a
1 changed files with 15 additions and 0 deletions
15
ops/pipelines/static-pipeline.yaml
Normal file
15
ops/pipelines/static-pipeline.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
# This file defines the static pipeline which is uploaded in the
|
||||
# Buildkite admin interface. These steps run at the beginning of each
|
||||
# build and cause the dynamic pipeline generation to run.
|
||||
---
|
||||
steps:
|
||||
- label: ":llama:"
|
||||
command: |
|
||||
function fallback() {
|
||||
echo 'Using fallback pipeline ...'
|
||||
buildkite-agent pipeline upload ops/pipelines/fallback.yaml
|
||||
exit
|
||||
}
|
||||
|
||||
nix-build -A ops.pipelines.depot -o depot.yaml || fallback
|
||||
buildkite-agent pipeline upload depot.yaml || fallback
|
Loading…
Reference in a new issue