I managed to figure it out in the meantime. The solution is quite simple, add an XML snippet like that to the Hydra extraConfig option:

  services.hydra = {
    enable = true;
    extraConfig = ''
      binary_cache_secret_key_file = ....
        jobs = test:test:test
        inputs = src
        authorization = Basic {BASE64 of user:pw}
        excludeBuildFromContext = 1

What I found really confusing is that the Hydra config file is a mix of XML snippets and INI style values. It took me quite some time to figure out that the XML snippet really goes into the Hydra config file.

Some more "documentation" can be found in the original PR ( https://github.com/NixOS/hydra/pull/280 ).

Cheers, Philipp

On 10/12/2016 02:57 PM, Philipp Hausmann wrote:

I am using Hydra for CI and I am loving it so far. However, it would be really nice to show the build status on Github. I see that there is a GithubStatus plugin in the Hydra source code, but I couldn't find any examples or documentation on how to use it. Is anybody using the GithubStatus plugin and could give me a hint? How do I configure the plugin?


nix-dev mailing list

Reply via email to