cirrus-ci-docs icon indicating copy to clipboard operation
cirrus-ci-docs copied to clipboard

How to setup Cirrus-CI for public mirrors

Open royger opened this issue 3 years ago • 2 comments

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.

royger avatar Apr 28 '22 10:04 royger

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.

fkorotkov avatar Apr 29 '22 13:04 fkorotkov

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.

royger avatar May 06 '22 11:05 royger