forked from DGNum/infrastructure
Tom Hubrecht
ecbad0a638
This adds subdirectories for the different types of systems, for the modules and the machines
32 lines
685 B
Nix
32 lines
685 B
Nix
{ lib }:
|
|
|
|
let
|
|
inherit (lib) attrNames genAttrs;
|
|
|
|
nodes = attrNames (import ../meta/nodes.nix);
|
|
in
|
|
|
|
{
|
|
name = "Build all the nodes";
|
|
on = {
|
|
pull_request.branches = [ "main" ];
|
|
push.branches = [ "main" ];
|
|
};
|
|
|
|
jobs = genAttrs nodes (node: {
|
|
runs-on = "nix";
|
|
steps = [
|
|
{ uses = "actions/checkout@v3"; }
|
|
{
|
|
name = "Build and cache ${node}";
|
|
run = "nix-shell -A eval-nodes --run cache-node";
|
|
env = {
|
|
STORE_ENDPOINT = "https://tvix-store.dgnum.eu/infra-signing/";
|
|
STORE_USER = "admin";
|
|
STORE_PASSWORD = "\${{ secrets.STORE_PASSWORD }}";
|
|
BUILD_NODE = node;
|
|
};
|
|
}
|
|
];
|
|
});
|
|
}
|