about summary refs log tree commit diff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/pipelines/briefcase.nix14
-rw-r--r--ci/pipelines/socrates.nix18
-rwxr-xr-xci/scripts/build-briefcase.sh6
-rwxr-xr-xci/scripts/build-socrates.sh9
-rw-r--r--ci/scripts/lint-secrets.sh3
5 files changed, 32 insertions, 18 deletions
diff --git a/ci/pipelines/briefcase.nix b/ci/pipelines/briefcase.nix
new file mode 100644
index 000000000000..d010718a1c19
--- /dev/null
+++ b/ci/pipelines/briefcase.nix
@@ -0,0 +1,14 @@
+{ pkgs, ... }:
+
+let
+  pipeline.steps = [
+    {
+      command = "${pkgs.git-secrets}/bin/git-secrets";
+      label = ":briefcase: Briefcase [lint]";
+    }
+    {
+      command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace";
+      label = ":briefcase: Briefcase [build]";
+    }
+  ];
+in pkgs.writeText "briefcase.yaml" (builtins.toJSON pipeline)
diff --git a/ci/pipelines/socrates.nix b/ci/pipelines/socrates.nix
new file mode 100644
index 000000000000..ffea654daef3
--- /dev/null
+++ b/ci/pipelines/socrates.nix
@@ -0,0 +1,18 @@
+{ pkgs, ... }:
+
+let
+  pipeline.steps = [
+    {
+      command = ''
+        nix-build '<nixpkgs/nixos>' \
+          -I briefcase="$(pwd)" \
+          -I nixpkgs=/var/lib/buildkite-agent-socrates/nixpkgs-channels \
+          -I nixos-config=nixos/socrates/default.nix \
+          -A system \
+          --no-out-link \
+          --show-trace
+      '';
+      label = ":laptop: Socrates [build]";
+    }
+  ];
+in pkgs.writeText "socrates.yml" (builtins.toJSON pipeline)
diff --git a/ci/scripts/build-briefcase.sh b/ci/scripts/build-briefcase.sh
deleted file mode 100755
index b5e1b8e9f3bd..000000000000
--- a/ci/scripts/build-briefcase.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-set -euo pipefail
-
-nix-build . \
-  -I briefcase="$(pwd)" \
-  --no-out-link \
-  --show-trace
diff --git a/ci/scripts/build-socrates.sh b/ci/scripts/build-socrates.sh
deleted file mode 100755
index f822c16ec1fe..000000000000
--- a/ci/scripts/build-socrates.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-set -euo pipefail
-
-nix-build '<nixpkgs/nixos>' \
-  -I briefcase="$(pwd)" \
-  -I nixpkgs=/var/lib/buildkite-agent-socrates/nixpkgs-channels \
-  -I nixos-config=nixos/socrates/default.nix \
-  -A system \
-  --no-out-link \
-  --show-trace
diff --git a/ci/scripts/lint-secrets.sh b/ci/scripts/lint-secrets.sh
deleted file mode 100644
index 1ff22a10637a..000000000000
--- a/ci/scripts/lint-secrets.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-set -euo pipefail
-
-git secrets --scan