host/istal: add cron job to delete renovate cache every day
This commit is contained in:
parent
e3c55b0e1e
commit
9300df10dd
1 changed files with 8 additions and 1 deletions
|
@ -4,10 +4,17 @@
|
||||||
age.secrets.renovate-gitea-token.file = ./renovate-gitea-token.age;
|
age.secrets.renovate-gitea-token.file = ./renovate-gitea-token.age;
|
||||||
age.secrets.renovate-github-token.file = ./renovate-github-token.age;
|
age.secrets.renovate-github-token.file = ./renovate-github-token.age;
|
||||||
|
|
||||||
|
services.cron = {
|
||||||
|
enable = true;
|
||||||
|
systemCronJobs = [
|
||||||
|
"0 3 * * * root rm -rf /var/cache/renovate /var/lib/renovate"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.renovate = {
|
services.renovate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.renovate;
|
package = pkgs.unstable.renovate;
|
||||||
schedule = "0..3,10..23:00";
|
schedule = "0..2,10..23:00";
|
||||||
credentials = {
|
credentials = {
|
||||||
RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path;
|
RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path;
|
||||||
GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;
|
GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;
|
||||||
|
|
Loading…
Reference in a new issue