cirrus-ci-docs
cirrus-ci-docs copied to clipboard
How to setup Cirrus-CI for public mirrors
Hello,
I'm trying to setup Cirrus-CI for https://github.com/xen-project/xen which is a public mirror, but despite having added the Cirrus-CI application and allowed it the required permissions I don't see it triggered when the mirror is updated. It does however work on forks from the same mirror (for example my personal one: https://github.com/royger/xen)
Does setting up Cirrus-CI for repositories that are public mirrors require some additional settings?
Thanks, Roger.
Hey @royger,
Cirrus CI triggers builds on a particular webhook events that GitHub generates for a repository. It seems in case of public mirrors GitHub is not proactively monitors your mirrors and generates appropriate events.
One workaround might be to create a cron config in your repository settings to create a build for the latest commit periodically.
Another a bit more complicated option might be to use Cirrus API and integrate Cirrus into your CI. For example, there is such hack for GitLab.
Hello,
Is there a way to trigger a cirrus-ci execution from a github action? Or use the github action to trigger the webhook used by cirrus?
Thanks, Roger.