You will need the following:
- The GitLab API token with permissions to the repositories to build
- GitLab secret associated with webhooks
- A capability file for submitting jobs to a cluster, in this case the main ocaml-ci cluster as documented in https://github.com/ocurrent/ocluster#admin
dune exec -- ocaml-ci-gitlab \
--gitlab-token-file <your-gitlab-token> \
--gitlab-webhook-secret-file <your-gitlab-secret> \
--submission-service <path-to-the-submission-capability-file> \
--capnp-listen-address tcp:127.0.0.1:9800
--migration-path "$PWD/migrations"This will generate a capability file. See the logs for Wrote capability reference to "./capnp-secrets/ocaml-ci-gitlab-admin.cap"