Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
Make it possible to containerize the Native CI
Archived levitte opened 1 year ago

The idea is to make it possible to specify a lancher script as adapter for the CI Broker, like this:

db: $HOME/.radicle-ci/ci-broker.sqlite
report_dir: $HOME/.radicle-ci/report
default_adapter: native
adapters:
  native:
    command: $HOME/.local/bin/launch-native-ci
    env:
    sensitive_env:
filters:
  - !And
    - !Repository "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
    - !Branch "master"

The Native CI’s config.yaml is created by launch-native-ci.

Environment variables that can be used to configure launch-native-ci:

  • RAD_HOME

    Radicle Home. default: $HOME/.radicle

  • RADICLE_NCI_HOME

    Radicle Native CI Home. default: $HOME/.radicle-native-ci

  • RADICLE_NCI_BASE_URL

    Base URL to map the state directory to. default: file:///$HOME/.radicle-native-ci/var/radicle-nci/state

Directories and files created by launch-native-ci:

$RADICLE_NCI_HOME
  |
  +-- etc
  |    |
  |    +--- config.yaml
  |
  +-- var
       |
       +--- state
       |
       +--- logs
levitte opened with revision f217d173 on base 215dbf3d +98 -0 1 year ago

The idea is to make it possible to specify a lancher script as adapter for the CI Broker, like this:

db: $HOME/.radicle-ci/ci-broker.sqlite
report_dir: $HOME/.radicle-ci/report
default_adapter: native
adapters:
  native:
    command: $HOME/.local/bin/launch-native-ci
    env:
    sensitive_env:
filters:
  - !And
    - !Repository "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
    - !Branch "master"

The Native CI’s config.yaml is created by launch-native-ci.

Environment variables that can be used to configure launch-native-ci:

  • RAD_HOME

    Radicle Home. default: $HOME/.radicle

  • RADICLE_NCI_HOME

    Radicle Native CI Home. default: $HOME/.radicle-native-ci

  • RADICLE_NCI_BASE_URL

    Base URL to map the state directory to. default: file:///$HOME/.radicle-native-ci/var/radicle-nci/state

Directories and files created by launch-native-ci:

$RADICLE_NCI_HOME
  |
  +-- etc
  |    |
  |    +--- config.yaml
  |
  +-- var
       |
       +--- state
       |
       +--- logs
levitte pushed revision 2 b3ebef02 on base 215dbf3d +98 -0 1 year ago

Small typo in launch-native-ci fixed

levitte pushed revision 3 dbf28591 on base 215dbf3d +165 -23 1 year ago

Rework README.md to document how to run radicle-native-ci in a container

liw pushed revision 4 b6506118 on base 758dde8f +58 -4 8 months ago

rebase