infrastructure/scripts/default.nix
sinavir 9f2165abc8
All checks were successful
build configuration / build_web02 (pull_request) Successful in 1m1s
build configuration / build_vault01 (pull_request) Successful in 1m0s
build configuration / build_compute01 (pull_request) Successful in 1m11s
build configuration / build_rescue01 (pull_request) Successful in 48s
build configuration / build_storage01 (pull_request) Successful in 1m25s
build configuration / build_web01 (pull_request) Successful in 1m27s
build configuration / push_to_cache (pull_request) Successful in 2m10s
build configuration / build_rescue01 (push) Successful in 1m1s
build configuration / build_vault01 (push) Successful in 1m2s
build configuration / build_storage01 (push) Successful in 1m5s
build configuration / build_compute01 (push) Successful in 1m10s
build configuration / build_web02 (push) Successful in 1m2s
lint / check (push) Successful in 22s
build configuration / build_web01 (push) Successful in 1m42s
build configuration / push_to_cache (push) Successful in 2m7s
feat(ci): Cache CI results
2024-04-12 22:14:20 +02:00

41 lines
615 B
Nix

{ pkgs, ... }:
let
substitutions = {
inherit (pkgs)
bash
colmena
coreutils
nvd
git
jq
;
attic = pkgs.attic-client;
};
mkShellScript =
name:
(pkgs.substituteAll (
{
inherit name;
src = ./. + "/${name}.sh";
dir = "/bin/";
isExecutable = true;
checkPhase = ''
${pkgs.stdenv.shellDryRun} "$target"
'';
}
// substitutions
));
scripts = [
"check-deployment"
"launch-vm"
"list-nodes"
"push-to-cache"
"cache"
];
in
builtins.map mkShellScript scripts