Switch from git hook mqtt msgs to GitLab system hook mqtt msgs
infra is planning to change the way we publish git messages on mqtt (msg.alpinelinux.org). Previously we announced commit and tag push operations via git hooks on git.a.o like:
git/aports/commits {"id":"445d54379797ecece6f65e6ba95c652c7bb966f1","message":"community\/perl-mojolicious: upgrade to 8.37","author_name":"Leo","repo":"aports","date":"2020-04-19T21:24:00-03:00","author_email":"redacted@gmail.com","ref":"refs\/heads\/master","branch":"master"}
git/aports/$git_branch/release {} // i do not have the current payload at hand
git/aports/$git_branch {"head":"704ddda566ad0498c6a71b72b71dd0718f790335","size":1,"ref":"refs\/heads\/master","repo":"aports","user":"gitlab-aports"}
The new approach will be to announce gitlab system hooks on mqtt like:
gitlab/$path/$project/$branch/push {} // gitlab system hook payload
gitlab/$path/$project/$branch/push_tag // gitlab system hook payload
This is currently setup as followed:
gitlab hook -> webhook.a.o -> msg.a.o