Compare commits
2 commits
5c315e004c
...
f18e2f9f4f
| Author | SHA1 | Date | |
|---|---|---|---|
| f18e2f9f4f | |||
| 0645631ff2 |
2 changed files with 49 additions and 0 deletions
2
.radicle/native.yaml
Normal file
2
.radicle/native.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
shell: |
|
||||
echo "Test Radicle Native CI"
|
||||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue