diff options
-rw-r--r-- | ops/modules/tvl-buildkite.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/modules/tvl-buildkite.nix b/ops/modules/tvl-buildkite.nix index f7d7223a037d..fc0f45b8c029 100644 --- a/ops/modules/tvl-buildkite.nix +++ b/ops/modules/tvl-buildkite.nix @@ -17,6 +17,11 @@ let mkdir -p $out/bin ln -s ${besadiiWithConfig "post-command"} $out/bin/post-command ''; + + credentialHelper = pkgs.writeShellScriptBin "gerrit-creds" '' + echo 'username=buildkite' + echo "password=$(jq -r '.gerritPassword' /run/agenix/buildkite-besadii-config)" + ''; in { options.services.depot.buildkite = { enable = lib.mkEnableOption description; @@ -39,6 +44,7 @@ in { runtimePackages = with pkgs; [ bash coreutils + credentialHelper curl git gnutar |