flake-update Hercules CI effect

This commit is contained in:
Andrea Ciceri 2023-12-08 10:40:05 +01:00
parent e82241b8b0
commit 8bcc6d32eb
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 24 additions and 9 deletions

20
ci/default.nix Normal file
View 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"];
};
};
}

View file

@ -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 = {};
}

View file

@ -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;
};
};