tvl-depot/ci/pipelines/post-receive.nix
William Carroll 4241339963 Define Buildkite pipelines corresponding to git server hooks
I think maintaining a 1:1 correspondence with the git server hook makes sense
right now. Let's try it out!
2020-08-22 23:27:44 +01:00

25 lines
686 B
Nix

{ pkgs, ... }:
let
pipeline.steps = [
{
key = "build-briefcase";
command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace";
label = ":nix: build briefcase";
}
{
key = "build-socrates";
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 = ":nix: build socrates";
depends_on = "build-briefcase";
}
];
in pkgs.writeText "pipeline.yaml" (builtins.toJSON pipeline)