1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules/services/continuous-integration
Viktor Kronvall c01046b022 services.buildkite-agents: support multi-tags
The buildkite agent supports multiple tags with the same key. This
functionality is used to have a [single agent listen on multiple
queues](https://buildkite.com/docs/agent/v3/queues#setting-an-agents-queue).

However, having the tags be of type `attrsOf str` means that
we cannot suport this use case. This commit modifies the type
of tags to be `attrsOf (either str (listOf str))` where the list
is expanded into multiple tags with the same key.

Example:
```
{tags = {queue = ["default", "testing"];};}
```
generates
```
tags="queue=default,queue=testing"
```
in the buildkite agent configuration.
2021-04-22 21:23:52 +09:00
..
buildbot
gocd-agent
gocd-server
hercules-ci-agent Improve todo 2021-02-10 10:36:00 +01:00
hydra nixos/hydra: gc-check-reachability no longer exists in nix 2.4 (#117925) 2021-03-29 11:14:16 +02:00
jenkins
buildkite-agents.nix services.buildkite-agents: support multi-tags 2021-04-22 21:23:52 +09:00
github-runner.nix nixos/github-runner: init at v2.277.1 (#116775) 2021-04-10 10:17:10 +00:00
gitlab-runner.nix
hail.nix