about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-11-17T22·27+0100
committertazjin <mail@tazj.in>2020-11-17T22·33+0000
commit73c862279aad7aa4c87bfe5ae2c69a0f56bb59df (patch)
tree299ce1e950c7ca87bbb32ba81d900ac2247895dc /ops
parent1857334d37e23aa17892338190fa29bac6c81e33 (diff)
feat(ops/pipelines): Check in the static pipeline r/1882
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>
Diffstat (limited to 'ops')
-rw-r--r--ops/pipelines/static-pipeline.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml
new file mode 100644
index 000000000000..515ab2cb6475
--- /dev/null
+++ b/ops/pipelines/static-pipeline.yaml
@@ -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