diff --git a/deps/sources.json b/deps/sources.json index 0cf6f87..2182374 100644 --- a/deps/sources.json +++ b/deps/sources.json @@ -32,9 +32,9 @@ "repo": "buildbot-nix" }, "branch": "main", - "revision": "2ada539d5518e74e18c83c4bf6090f7bd1cfb8e2", - "url": "https://github.com/JulienMalka/buildbot-nix/archive/2ada539d5518e74e18c83c4bf6090f7bd1cfb8e2.tar.gz", - "hash": "1y4p5rb270l8d8a7id49djs022cxv79r9m2jfv3amjvp4jkz97hk" + "revision": "1a978e8c4abde49dfb4e81be1f2d6e561089bb0e", + "url": "https://github.com/JulienMalka/buildbot-nix/archive/1a978e8c4abde49dfb4e81be1f2d6e561089bb0e.tar.gz", + "hash": "10yr5yx1y9wh9x1asj29142w787fsvc9q6arf0znvs4gb89dl8l9" }, "colmena": { "type": "Git", diff --git a/modules/buildbot/default.nix b/modules/buildbot/default.nix index 3b81df5..47f7d78 100644 --- a/modules/buildbot/default.nix +++ b/modules/buildbot/default.nix @@ -67,5 +67,34 @@ in enable = true; workerPasswordFile = config.age.secrets.buildbot-nix-worker-password.path; }; + services.buildbot-master = { + pythonPackages = _: [ + pkgs.buildbot-plugins.badges + pkgs.buildbot-plugins.www + ]; + extraConfig = '' + c["www"].update({"plugins": {"badges": { + "left_pad" : 5, + "left_text": "Build Status", # text on the left part of the image + "left_color": "#555", # color of the left part of the image + "right_pad" : 5, + "border_radius" : 5, # Border Radius on flat and plastic badges + # style of the template availables are "flat", "flat-square", "plastic" + "template_name": "flat.svg.j2", # name of the template + "font_face": "DejaVu Sans", + "font_size": 11, + "color_scheme": { # color to be used for right part of the image + "exception": "#007ec6", + "failure": "#e05d44", + "retry": "#007ec6", + "running": "#007ec6", + "skipped": "a4a61d", + "success": "#4c1", + "unknown": "#9f9f9f", + "warnings": "#dfb317" + } + }}}) + ''; + }; }; }