fix(ops/modules/buildkite): merge tags appropriately

Everything was large=true and then nothing was small=true and did not
have a hostname.

This is fixed.

Change-Id: Id90e6246f9ab44ce020d999e975dd8b4cd4492c9
Signed-off-by: Ryan Lahfa <raito@lix.systems>
This commit is contained in:
Ryan Lahfa 2025-03-17 17:29:51 +01:00 committed by Florian Klink
parent 9aea7dc6df
commit b6516a9605

View file

@ -65,10 +65,12 @@ in
export PATH=$PATH:/run/wrappers/bin
'';
tags.hostname = hostname;
# all agents support small jobs
tags.small = "true";
tags = {
# all agents support small jobs
small = "true";
inherit hostname;
large = if n <= cfg.largeSlots then "true" else "false";
};
runtimePackages = with pkgs; [
bash
@ -81,10 +83,7 @@ in
jq
nix
];
}
// (lib.optionalAttrs (n <= cfg.largeSlots) {
tags.large = "true";
});
};
})
agents
);