From f87c066685098da9a67dd410104cbba8c5fdcdbd Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 9 Apr 2026 11:04:46 +0900 Subject: deploy cgit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/git/items.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bundles/git/items.py (limited to 'bundles/git/items.py') diff --git a/bundles/git/items.py b/bundles/git/items.py new file mode 100644 index 0000000..22948ae --- /dev/null +++ b/bundles/git/items.py @@ -0,0 +1,47 @@ +if node.os != "alpine": + raise BundleError(f"{node.name}: OS {node.os} is not supported.") + +svc_openrc = { + "fcgiwrap": { + "enabled": True, + "running": True, + "runlevel": "default", + "needs": [ + "pkg_apk:fcgiwrap", + ], + }, +} + +directories = { + # this is where we store repos + "/var/lib/git": { + "mode": "0775", + "group": "wheel", + "owner": "robert", + }, + # this is the webroot + "/var/www/cgit": { + "mode": "0775", + "group": "www-data", + "owner": "webdeploy", + }, +} + +files = { + "/var/www/cgit/Caddyfile": {}, + "/var/www/cgit/custom.css": {}, + "/etc/cgitrc": {}, + + "/etc/s6-rc/cgit.conf": { + "content_type": "mako", + }, + + # TODO: run behind go-away and expose? + "/etc/traefik/cgit.yaml": { + "content_type": "mako", + "source": "traefik.yaml", + "needs": { + "bundle:traefik", + }, + }, +} -- cgit 1.4.1