refactor hydra, convert features to refs
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
13b39a1d26
commit
fbaa1f0ac6
@ -186,7 +186,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
hydraJobs = import ./.hydra/jobs.nix { inherit inputs outputs; };
|
hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs; };
|
||||||
|
|
||||||
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
|
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
pulls,
|
pulls,
|
||||||
feature-branches,
|
branches,
|
||||||
flake-update-branches,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -25,8 +25,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
prs = builtins.fromJSON (builtins.readFile pulls);
|
prs = builtins.fromJSON (builtins.readFile pulls);
|
||||||
branches = builtins.fromJSON (builtins.readFile feature-branches);
|
refs = builtins.fromJSON (builtins.readFile refs);
|
||||||
update = builtins.fromJSON (builtins.readFile flake-update-branches);
|
|
||||||
repo = "ahuston-0/nix-dotfiles-hydra";
|
repo = "ahuston-0/nix-dotfiles-hydra";
|
||||||
|
|
||||||
makeJob =
|
makeJob =
|
||||||
@ -145,10 +144,7 @@ in
|
|||||||
jobsets = makeSpec (
|
jobsets = makeSpec (
|
||||||
builtins.listToAttrs (map ({ name, value }: jobOfPR name value) (attrsToList (readJSONFile prs)))
|
builtins.listToAttrs (map ({ name, value }: jobOfPR name value) (attrsToList (readJSONFile prs)))
|
||||||
// builtins.listToAttrs (
|
// builtins.listToAttrs (
|
||||||
mapFilter ({ name, value }: jobOfRef name value) (attrsToList (readJSONFile branches))
|
mapFilter ({ name, value }: jobOfRef name value) (attrsToList (readJSONFile refs))
|
||||||
)
|
|
||||||
// builtins.listToAttrs (
|
|
||||||
mapFilter ({ name, value }: jobOfRef name value) (attrsToList (readJSONFile update))
|
|
||||||
)
|
)
|
||||||
// {
|
// {
|
||||||
main = makeJob {
|
main = makeJob {
|
@ -26,14 +26,9 @@
|
|||||||
"value": "ahuston-0 nix-dotfiles-hydra",
|
"value": "ahuston-0 nix-dotfiles-hydra",
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
},
|
},
|
||||||
"feature-branches": {
|
"branches": {
|
||||||
"type": "github_refs",
|
"type": "github_refs",
|
||||||
"value": "ahuston-0 nix-dotfiles-hydra heads - feature",
|
"value": "ahuston-0 nix-dotfiles-hydra heads -",
|
||||||
"emailresponsible": false
|
|
||||||
},
|
|
||||||
"flake-update-branches": {
|
|
||||||
"type": "github_refs",
|
|
||||||
"value": "ahuston-0 nix-dotfiles-hydra heads - update_flake_lock_action",
|
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user