mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-29 14:50:35 +08:00
Include context information to the adapter(s) about the trigger, distinguishing a trigger for a patch and a trigger for a push (possibly to a patch), according to the architecture. Specifically, add push information for git pushes, including commit(s) and author. For patches, add information about the specific patch that was updated, its revisions, along with the latest revision and the commits it includes.
48 lines
1.2 KiB
Markdown
48 lines
1.2 KiB
Markdown
# radicle-ci-broker
|
|
|
|
This is not production ready code yet, but it will eventually become a
|
|
thing that listens for changes in a Radicle node, and triggers CI on
|
|
the relevant ones.
|
|
|
|
## Configuration
|
|
|
|
The configuration file is named on the command line. It is a YAML
|
|
file, for example:
|
|
|
|
~~~yaml
|
|
default_adapter: native
|
|
adapters:
|
|
native:
|
|
command: radicle-native-ci
|
|
env:
|
|
RADICLE_NATIVE_CI: /home/liw/radicle/radicle-native-ci/x/config.yaml
|
|
filters:
|
|
- !And
|
|
- !Repository "rad:z2e6URdt1we1iG1BCVqtx8QVgsX4a"
|
|
- !Or
|
|
- !Branch "main"
|
|
- !AnyPatchRef
|
|
~~~
|
|
|
|
OR if you only want to filter for patch COB updates (e.g. comments), to the specified repository:
|
|
|
|
~~~yaml
|
|
default_adapter: native
|
|
adapters:
|
|
native:
|
|
command: radicle-native-ci
|
|
env:
|
|
RADICLE_NATIVE_CI: /home/liw/radicle/radicle-native-ci/x/config.yaml
|
|
filters:
|
|
- !And
|
|
- !Repository "rad:z2e6URdt1we1iG1BCVqtx8QVgsX4a"
|
|
- !And
|
|
- !AnyPatch
|
|
- !Not
|
|
- !AnyPatchRef
|
|
~~~
|
|
|
|
This runs the native CI engine as an adapter, on any repository events
|
|
that pass the filter. The filter allows any changes to the `main`
|
|
branch or any Radicle patch, on the specified repository.
|