Skip to content

Commit

Permalink
Merge pull request #212 from hercules-ci/flake-updater
Browse files Browse the repository at this point in the history
dev: Add flake-update
  • Loading branch information
roberth authored Aug 23, 2023
2 parents 51ed705 + 57516c3 commit 28902d3
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 7 deletions.
133 changes: 132 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
haskell-flake.url = "github:srid/haskell-flake/0.1.0";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
hercules-ci-effects.url = "github:hercules-ci/hercules-ci-effects";
hercules-ci-effects.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ config, lib, extendModules, ... }: {
imports = [
inputs.haskell-flake.flakeModule
inputs.hercules-ci-effects.flakeModule
inputs.flake-parts.flakeModules.easyOverlay
./docs/flake-module.nix
./tests/flake-module.nix
Expand Down Expand Up @@ -63,6 +66,23 @@
];
});
};

hercules-ci.flake-update = {
enable = true;
autoMergeMethod = "merge";
when = {
hour = [ 2 ];
dayOfMonth = [ 5 ];
};
};

herculesCI.ciSystems = [
# "aarch64-darwin"
# "aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];

flake = {
debug = { inherit inputs config lib; };

Expand All @@ -79,12 +99,6 @@
in composition.config.out.dockerComposeYaml;
};
nixosModules.arion = ./nixos-module.nix;
herculesCI.ciSystems = [
# "aarch64-darwin"
# "aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
};
});
}

0 comments on commit 28902d3

Please sign in to comment.