Ensure only pushes to the master branch trigger a website refresh
One recurring pain point in our release process is: being blocked for dozens of minutes, or even 1h, sometimes several times in a row, while pushing branches other than master, because every push triggers a ping of ikiwiki, and if ikiwiki is already doing a costly website refresh, then this ping is blocked until that refresh completes.
We should ping ikiwiki only when the master branch is being pushed, instead of on every push.
The corresponding code is https://git.tails.boum.org/puppet-tails/tree/files/gitolite/hooks/www_website_ping-post-update.hook.
It's set up as a Git
- Status changed from In Progress to Needs Validation
- Assignee changed from Sysadmins to zen
- Target version set to Tails_4.2
Done via https://git.tails.boum.org/puppet-tails/commit/?id=61f9c386fc82178b9b4fd5073f28d275f2a10a9b.
Note that I first had to do https://git.tails.boum.org/puppet-tails/commit/?id=7e433f8fff60b390a805073b679f736be5cf5869.
I've verified that a push to master triggers a refresh, while a push to another branch does not.
Please review :)