feat: enable badges on buildbot

This commit is contained in:
Julien Malka 2024-05-22 23:31:08 +02:00
parent 3fe593b539
commit ae83aaadf0
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 32 additions and 3 deletions

6
deps/sources.json vendored
View file

@ -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",

View file

@ -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"
}
}}})
'';
};
};
}