feat: Add radicle ci support for Cape
This commit is contained in:
parent
5c315e004c
commit
0645631ff2
1 changed files with 47 additions and 0 deletions
|
|
@ -31,6 +31,45 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
listenPort = 8489;
|
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 = {
|
settings = {
|
||||||
publicExplorer = "https://app.radicle.xyz/nodes/$host/$rid$path";
|
publicExplorer = "https://app.radicle.xyz/nodes/$host/$rid$path";
|
||||||
preferredSeeds = [
|
preferredSeeds = [
|
||||||
|
|
@ -104,6 +143,14 @@ in
|
||||||
reverse_proxy 127.0.0.1:8489
|
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue