2024-11-11 17:52:23 +01:00
|
|
|
{ lib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) attrNames genAttrs;
|
|
|
|
|
|
|
|
nodes = attrNames (builtins.readDir ../machines);
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "Build all the nodes";
|
|
|
|
on = {
|
|
|
|
pull_request.branches = [ "main" ];
|
|
|
|
push.branches = [ "main" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
jobs = genAttrs nodes (node: {
|
|
|
|
runs-on = "nix";
|
|
|
|
steps = [
|
2024-11-11 18:01:44 +01:00
|
|
|
{ uses = "actions/checkout@v3"; }
|
2024-11-11 17:52:23 +01:00
|
|
|
{
|
|
|
|
name = "Build and cache ${node}";
|
|
|
|
run = "nix-shell --run cache-node";
|
|
|
|
env = {
|
|
|
|
STORE_ENDPOINT = "https://tvix-store.dgnum.eu/infra-signing/";
|
|
|
|
STORE_USER = "admin";
|
|
|
|
STORE_PASSWORD = "\${{ secrets.STORE_PASSWORD }}";
|
|
|
|
BUILD_NODE = node;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|