host/istal: add renovate bot
This commit is contained in:
parent
1fc5b9e75f
commit
374837754c
6 changed files with 49 additions and 1 deletions
Binary file not shown.
|
@ -178,7 +178,8 @@
|
||||||
]
|
]
|
||||||
++ extraModules
|
++ extraModules
|
||||||
++ [ ./modules/nixos ]
|
++ [ ./modules/nixos ]
|
||||||
++ [ ./hosts/${hostname}/configuration.nix ];
|
++ [ ./hosts/${hostname}/configuration.nix ]
|
||||||
|
++ [ "${inputs.nixpkgs-unstable}/nixos/modules/services/misc/renovate.nix" ];
|
||||||
})
|
})
|
||||||
(import ./hosts inputs);
|
(import ./hosts inputs);
|
||||||
diskoConfigurations = {
|
diskoConfigurations = {
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
./wireguard
|
./wireguard
|
||||||
./docker-registry-proxy.nix
|
./docker-registry-proxy.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
./renovate.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
BIN
hosts/istal/services/renovate-gitea-token.age
Normal file
BIN
hosts/istal/services/renovate-gitea-token.age
Normal file
Binary file not shown.
BIN
hosts/istal/services/renovate-github-token.age
Normal file
BIN
hosts/istal/services/renovate-github-token.age
Normal file
Binary file not shown.
46
hosts/istal/services/renovate.nix
Normal file
46
hosts/istal/services/renovate.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
age.secrets.renovate-gitea-token.file = ./renovate-gitea-token.age;
|
||||||
|
age.secrets.renovate-github-token.file = ./renovate-github-token.age;
|
||||||
|
|
||||||
|
services.renovate = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.renovate;
|
||||||
|
schedule = "0..3,10..23:00/15";
|
||||||
|
credentials = {
|
||||||
|
RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path;
|
||||||
|
GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;
|
||||||
|
};
|
||||||
|
runtimePackages = with pkgs.unstable; [
|
||||||
|
nodePackages.pnpm
|
||||||
|
nodePackages.npm
|
||||||
|
python312
|
||||||
|
poetry
|
||||||
|
gnumake
|
||||||
|
cargo
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
platform = "gitea";
|
||||||
|
endpoint = "https://git.pleshevski.ru";
|
||||||
|
assignees = [ "pleshevskiy" ];
|
||||||
|
autodiscover = true;
|
||||||
|
packageRules = [
|
||||||
|
{
|
||||||
|
matchUpdateTypes = [ "minor" "patch" "pin" "digest" ];
|
||||||
|
automerge = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
automergeStrategy = "fast-forward";
|
||||||
|
onboardingConfig = {
|
||||||
|
"$schema" = "https://docs.renovatebot.com/renovate-schema.json";
|
||||||
|
extends = [ "config:recommended" ];
|
||||||
|
configMigration = true;
|
||||||
|
};
|
||||||
|
globalExtends = ["npm:unpublishSafe"];
|
||||||
|
|
||||||
|
cacheHardTtlMinutes = 60 * 24;
|
||||||
|
httpCacheTtlDays = 7;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue