about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
Diffstat (limited to 'ops')
-rw-r--r--ops/pipelines/README.md3
-rw-r--r--ops/pipelines/depot.nix21
2 files changed, 24 insertions, 0 deletions
diff --git a/ops/pipelines/README.md b/ops/pipelines/README.md
new file mode 100644
index 000000000000..f4ab1cc1ae3d
--- /dev/null
+++ b/ops/pipelines/README.md
@@ -0,0 +1,3 @@
+This folder contains various utilities used for our [Buildkite CI
+setup][ci]. These are mostly hooks invoked by Buildkite runners, or
+configuration used to set up the build pipelines.
diff --git a/ops/pipelines/depot.nix b/ops/pipelines/depot.nix
new file mode 100644
index 000000000000..40de18b5de36
--- /dev/null
+++ b/ops/pipelines/depot.nix
@@ -0,0 +1,21 @@
+# This file configures the primary build pipeline used for the
+# top-level list of depot targets.
+#
+# It outputs a "YAML" (actually JSON) file which is evaluated and
+# submitted to Buildkite at the start of each build. This means we can
+# dynamically configure the pipeline execution here.
+{ depot, pkgs, ... }:
+
+let
+  inherit (builtins) toJSON;
+  inherit (pkgs) writeText;
+
+  # This defines the build pipeline, using the pipeline format
+  # documented on https://buildkite.com/docs/pipelines/defining-steps
+  pipeline.steps = [
+    {
+      command = "nix-build -A ciBuilds.__allTargets";
+      label = "all-targets";
+    }
+  ];
+in writeText "depot.yaml" (toJSON pipeline)