collectors
Define the collectors section of lunar-config.yml — scripts that run on CI, code, or cron triggers to gather component metadata.
collectors: - <collector-object> - <collector-object> - ...
collectors:
- uses: github://third-party/some-collector@v1
on: [auth, frontend]
hook:
type: ci-before-command
pattern: ^go build.*
- uses: ./my-collector
on: ["domain:my-domain"]
hook:
type: ci-before-job
pattern: .*
- uses: ./my-collector
on: ["domain:foo-product"]
hook:
type: code
- uses: ./another-collector
on: [go]
hook:
type: cron
schedule: "0 2 * * *"
- name: Hello world collector
runBash: lunar collect '.hello' world
on: [java]
hook:
type: ci-after-command
pattern: ^mvn install.*
- name: Example script collector
mainBash: ./my-script.sh
on: [python]
hook:
type: cron
schedule: "0 2 * * *"Collector
name
namedescription
descriptionuses
useswith
withinclude
includeexclude
excluderun<language>
run<language>runBash
runBashrunPython
runPythonmain<language>
main<language>mainBash
mainBashmainPython
mainPythonon
onruns_on
runs_onhook
hookhooks
hooksimage
imageLast updated
