summaryrefslogtreecommitdiffstats
path: root/modules/cd/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-18 21:22:21 +0200
committertv <tv@shackspace.de>2015-06-18 21:22:21 +0200
commit1325e5a6757c5825704e74b641e829c25c810124 (patch)
tree5287e42c1a51131a6e052101c932de699f88c7c1 /modules/cd/default.nix
parent94488da95f3161bc791efa7a5c4d74ce2ebfab21 (diff)
host cd: use irc-announce and cgit
Diffstat (limited to 'modules/cd/default.nix')
-rw-r--r--modules/cd/default.nix33
1 files changed, 20 insertions, 13 deletions
diff --git a/modules/cd/default.nix b/modules/cd/default.nix
index ac32795ef..7223203a0 100644
--- a/modules/cd/default.nix
+++ b/modules/cd/default.nix
@@ -59,31 +59,38 @@
makefu = { pubkey = "xxx"; };
};
- # TODO warn about stale repodirs
repos = addNames {
+ shitment = {
+ desc = "shitment repository";
+ hooks = {
+ post-receive = git.irc-announce {
+ nick = config.networking.hostName; # TODO make this the default
+ channel = "#retiolum";
+ server = "ire.retiolum";
+ };
+ };
+ public = true;
+ };
testing = {
+ desc = "testing repository";
hooks = {
- update = ''
- #! /bin/sh
- set -euf
- echo update hook: $* >&2
- '';
- post-update = ''
- #! /bin/sh
- set -euf
- echo post-update hook: $* >&2
- '';
+ post-receive = git.irc-announce {
+ nick = config.networking.hostName; # TODO make this the default
+ channel = "#repository";
+ server = "ire.retiolum";
+ };
};
+ public = true;
};
};
rules = with git; with users; with repos; [
{ user = tv;
- repo = testing;
+ repo = [ testing shitment ];
perm = push master [ non-fast-forward create delete merge ];
}
{ user = [ lass makefu ];
- repo = testing;
+ repo = [ testing shitment ];
perm = fetch;
}
];