canonical / snapcraft.io

The official website's repository for the Snap store
https://snapcraft.io/
Other
146 stars 109 forks source link

build.s.i: Support webhook build triggering #2849

Open brlin-tw opened 5 years ago

brlin-tw commented 5 years ago

Not all upstreams are willing to maintain an official snap package, but I guess more of them are willing to set up a webhook to trigger a third-party snap build on every SCM push(GitHub, SourceForge), I would like to request that build.snapcraft.io support this method.

This also makes repos that are not hosted on GitHub can automate the snap build without migrating their projects to GitHub.

(Copied from the snapcraft forum thread: Build.snapcraft.io: Support webhook build trigger? - snapcraft - snapcraft.io)

bartaz commented 5 years ago

@Lin-Buo-Ren I moved this here as it's more relevant.

bartaz commented 5 years ago

@Lin-Buo-Ren Could you elaborate more on what do you mean by webhook support?

Currently BSI sets a webhook at github, so whenever something is pushed to a repo configured in BSI a snap build would be triggered. What do you mean by 'webhook triggering third party snap build'? Where the snap code would be hosted? Where would snapcraft.yaml live (if upstreams are not willing to maintain snap package)?

Or maybe this discussion is better of on the forum thread?

bartaz commented 5 years ago

Commented on the forum, so maybe let's keep clarification discussion out there, so it's more visible to forum community.

https://forum.snapcraft.io/t/build-snapcraft-io-support-webhook-build-trigger/8640/5

tianon commented 4 years ago

I'm very interested in this -- I want to maintain my Snap on GitHub, but I cannot authorize snapcraft.io with admin access to all the repositories I have access to, so as far as I can tell my only option is to create a new GitHub account with access to just the organization/repository I want to grant access to so that I can authorize it, just so that snapcraft.io can install a webhook on my GitHub repository which I would happily configure myself directly without all this hoop jumping if it were an option.

Edit: sorry, in my haste I commented in the wrong place -- copied my comment to https://forum.snapcraft.io/t/build-snapcraft-io-support-webhook-build-trigger/8640/16?u=tianon :innocent: :heart: