Ensure only pushes to the master branch trigger a website refresh
Originally created by @intrigeri on #17363 (Redmine)
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 post-update
hook.
Related issues
- Related to tails#17361 (closed)
- Related to #17307 (closed)
Edited by intrigeri