feat(ops/besadii): Refactored tool to trigger sourcehut builds

Refactors //ops/sync-gcsr which was previously responsible for
synchronising the git repository between GCSR and the git.tazj.in cgit
instance to simply be responsible for triggering builds on sourcehut.

This program is intended to run as a git post-update hook.

Note: Not yet feature complete, as interpolation of concrete git
values and also sourcehut secrets is missing.
This commit is contained in:
Vincent Ambo 2020-02-13 22:38:34 +00:00
parent d657e878fa
commit 80c6680eda
5 changed files with 127 additions and 239 deletions

8
ops/besadii/default.nix Normal file
View file

@ -0,0 +1,8 @@
# This program is used as a git post-update hook to trigger builds on
# sourcehut.
{ depot, ... }:
depot.buildGo.program {
name = "besadii";
srcs = [ ./main.go ];
}