Skip to content

Commit

Permalink
feat(buildbot-nix-0): configure legacy endpoint for jobsets
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Nov 5, 2024
1 parent 54f78af commit 9f80b14
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
topic = "holo-chain-buildbot-nix-0";
channelsFqdn = "buildbot-nix-0-channels.${config.passthru.domain}";
channelsDirectory = "/var/www/buildbot/nix-channels";
jobsetsDirectory = "/var/www/buildbot/nix-jobsets";
};

buildbot-secrets = {
Expand Down Expand Up @@ -199,6 +200,7 @@
# it's made writable for nginx and buildbot-worker
systemd.tmpfiles.rules = [
"d ${config.passthru.buildbot-nix.channelsDirectory} 0755 buildbot-worker buildbot-worker - -"
"d ${config.passthru.buildbot-nix.jobsetsDirectory} 0755 buildbot-worker buildbot-worker - -"
];
services.nginx.virtualHosts."${config.passthru.buildbot-nix.channelsFqdn}" = {
enableACME = true;
Expand All @@ -209,6 +211,13 @@
autoindex on;
'';
};

locations."/jobset/holo-nixpkgs/" = {
alias = "${config.passthru.buildbot-nix.jobsetsDirectory}/";
extraConfig = ''
autoindex on;
'';
};
};

sops.defaultSopsFile = self + "/secrets/${config.networking.hostName}/secrets.yaml";
Expand Down Expand Up @@ -323,6 +332,7 @@
)
// {
PBS_CHANNELS_DIRECTORY = config.passthru.buildbot-nix.channelsDirectory;
PBS_JOBSETS_DIRECTORY = config.passthru.buildbot-nix.jobsetsDirectory;
SOURCE_BRANCH_CHANNELS = builtins.concatStringsSep "," [ "buildbot-nix-hydra-compat" ];
};
command = [ (lib.getExe' self.packages.${pkgs.system}.postbuildstepper "postbuildstepper") ];
Expand Down

0 comments on commit 9f80b14

Please sign in to comment.