flake-update
Hercules CI effect
This commit is contained in:
parent
e82241b8b0
commit
8bcc6d32eb
3 changed files with 24 additions and 9 deletions
20
ci/default.nix
Normal file
20
ci/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.hercules-ci-effects.flakeModule
|
||||
];
|
||||
herculesCI.ciSystems = [
|
||||
"x86_64-linux"
|
||||
# "aarch64-linux"
|
||||
];
|
||||
hercules-ci.flake-update = {
|
||||
enable = true;
|
||||
updateBranch = "updated-flake-lock";
|
||||
createPullRequest = true;
|
||||
autoMergeMethod = null;
|
||||
when = {
|
||||
minute = 45;
|
||||
hour = 13;
|
||||
dayOfWeek = ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"];
|
||||
};
|
||||
};
|
||||
}
|
10
flake.nix
10
flake.nix
|
@ -40,7 +40,7 @@
|
|||
};
|
||||
|
||||
outputs = inputs @ {flakeParts, ...}:
|
||||
flakeParts.lib.mkFlake {inherit inputs;} ({lib, ...}: {
|
||||
flakeParts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
# TODO export modules as flake outputs
|
||||
# ./modules
|
||||
|
@ -49,14 +49,10 @@
|
|||
./packages
|
||||
./shell
|
||||
./checks
|
||||
inputs.hercules-ci-effects.flakeModule
|
||||
./ci
|
||||
];
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
herculesCI.ciSystems = [
|
||||
"x86_64-linux"
|
||||
# "aarch64-linux"
|
||||
];
|
||||
});
|
||||
};
|
||||
|
||||
nixConfig = {};
|
||||
}
|
||||
|
|
|
@ -6,10 +6,9 @@
|
|||
services.hercules-ci-agent = {
|
||||
enable = true;
|
||||
settings = {
|
||||
concurrentTasks = 8;
|
||||
concurrentTasks = 32;
|
||||
clusterJoinTokenPath = config.age.secrets.hercules-ci-join-token.path;
|
||||
binaryCachesPath = config.age.secrets.hercules-ci-binary-caches.path;
|
||||
# secretsJsonPath = config.hercules-ci-secrets.path;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue