feat: Add radicle ci support for Cape

This commit is contained in:
ulic-youthlic 2025-11-03 22:55:20 +08:00
parent 5c315e004c
commit 0645631ff2
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -31,6 +31,45 @@ in
enable = true;
listenPort = 8489;
};
ci = {
adapters = {
native = {
instances = {
default-native = {
enable = true;
settings = {
# base_url = "";
};
};
};
};
};
broker = {
enable = true;
enableHardening = true;
settings = {
triggers = [
{
adapter = "default-native";
filters = [
{
And = [
{ HasFile = ".radicle/native.yaml"; }
{
Or = [
"DefaultBranch"
"PatchCreated"
"PatchUpdated"
];
}
];
}
];
}
];
};
};
};
settings = {
publicExplorer = "https://app.radicle.xyz/nodes/$host/$rid$path";
preferredSeeds = [
@ -104,6 +143,14 @@ in
reverse_proxy 127.0.0.1:8489
'';
};
"ci-${cfg.domain}" = {
extraConfig = ''
encode zstd gzip
root * ${config.services.radicle.ci.broker.settings.report_dir}
try_files {path} /index.html
file_server
'';
};
};
})
];