infrastructure/scripts/default.nix
Ryan Lahfa 4fabadccb4
All checks were successful
Check meta / check_dns (pull_request) Successful in 20s
Check meta / check_meta (pull_request) Successful in 21s
Check workflows / check_workflows (pull_request) Successful in 27s
Build all the nodes / geo02 (pull_request) Successful in 3m44s
Build all the nodes / geo01 (pull_request) Successful in 3m50s
Build all the nodes / bridge01 (pull_request) Successful in 4m12s
Build all the nodes / rescue01 (pull_request) Successful in 4m5s
Build all the nodes / storage01 (pull_request) Successful in 4m2s
Build all the nodes / compute01 (pull_request) Successful in 4m45s
Run pre-commit on all files / check (pull_request) Successful in 32s
Build all the nodes / vault01 (pull_request) Successful in 1m24s
Build all the nodes / web02 (pull_request) Successful in 1m18s
Build all the nodes / web03 (pull_request) Successful in 1m18s
Build all the nodes / web01 (pull_request) Successful in 1m54s
Check meta / check_meta (push) Successful in 26s
Check meta / check_dns (push) Successful in 26s
Build all the nodes / geo01 (push) Successful in 1m21s
Build all the nodes / bridge01 (push) Successful in 1m21s
Build all the nodes / geo02 (push) Successful in 1m4s
Build all the nodes / compute01 (push) Successful in 1m48s
Build all the nodes / storage01 (push) Successful in 1m42s
Build all the nodes / rescue01 (push) Successful in 1m44s
Build all the nodes / vault01 (push) Successful in 1m36s
Run pre-commit on all files / check (push) Successful in 24s
Build all the nodes / web01 (push) Successful in 1m53s
Build all the nodes / web02 (push) Successful in 1m19s
Build all the nodes / web03 (push) Successful in 1m20s
feat(scripts/): use our own colmena
In the future, we should not have to do this.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
2024-12-07 15:30:42 +01:00

36 lines
679 B
Nix

{ sources, pkgs }:
let
# TODO: move this into a proper overlay of `pkgs` so that we don't need to track this for every and any package.
colmena = pkgs.callPackage ../lib/colmena {
colmena = pkgs.callPackage "${sources.colmena}/package.nix" { };
};
inherit (pkgs.lib) mapAttrs;
inherit (pkgs)
writeShellApplication
jq
nvd
;
scripts = {
cache-node = [ colmena ];
check-deployment = [
colmena
jq
nvd
];
launch-vm = [ colmena ];
list-nodes = [ jq ];
};
in
mapAttrs (
name: runtimeInputs:
writeShellApplication {
inherit name runtimeInputs;
text = builtins.readFile ./${name}.sh;
}
) scripts