Configured binary cache for Hercules CI

This commit is contained in:
Andrea Ciceri 2023-06-19 22:18:53 +02:00
parent 5e9020533b
commit 563d6f296e
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
4 changed files with 5 additions and 3 deletions

View file

@ -187,6 +187,7 @@
secrets = { secrets = {
"rock5b-wireguard-private-key" = {}; "rock5b-wireguard-private-key" = {};
"hercules-ci-join-token".owner = "hercules-ci-agent"; "hercules-ci-join-token".owner = "hercules-ci-agent";
"hercules-ci-binary-caches".owner = "hercules-ci-agent";
}; };
colmena.deployment.buildOnTarget = true; colmena.deployment.buildOnTarget = true;
}; };
@ -232,6 +233,7 @@
# "hydra-github-token".group = "hydra"; # "hydra-github-token".group = "hydra";
"cache-private-key".owner = "nix-serve"; "cache-private-key".owner = "nix-serve";
"hercules-ci-join-token".owner = "hercules-ci-agent"; "hercules-ci-join-token".owner = "hercules-ci-agent";
"hercules-ci-binary-caches".owner = "hercules-ci-agent";
}; };
}; };
}; };

View file

@ -8,9 +8,8 @@
settings = { settings = {
concurrentTasks = 8; concurrentTasks = 8;
clusterJoinTokenPath = config.age.secrets.hercules-ci-join-token.path; clusterJoinTokenPath = config.age.secrets.hercules-ci-join-token.path;
# Don't need using private caches, if I would ever need remember to use agenix! binaryCachesPath = config.age.secrets.hercules-ci-binary-caches.path;
binaryCachesPath = pkgs.writeText "binary-caches-path" (builtins.toJSON {}); # secretsJsonPath = config.hercules-ci-secrets.path;
# secretsJsonPath = config.hci-secrets.hci-mlabs-haskell.target;
}; };
}; };
} }

View file

@ -11,6 +11,7 @@ in
"cache-private-key.age".publicKeys = [ccr-ssh ccr-gpg mothership]; "cache-private-key.age".publicKeys = [ccr-ssh ccr-gpg mothership];
"autistici-password.age".publicKeys = [ccr-ssh ccr-gpg thinkpad]; "autistici-password.age".publicKeys = [ccr-ssh ccr-gpg thinkpad];
"hercules-ci-join-token.age".publicKeys = [ccr-ssh ccr-gpg mothership rock5b]; "hercules-ci-join-token.age".publicKeys = [ccr-ssh ccr-gpg mothership rock5b];
"hercules-ci-binary-caches.age".publicKeys = [ccr-ssh ccr-gpg mothership rock5b];
# WireGuard # WireGuard
"thinkpad-wireguard-private-key.age".publicKeys = [ccr-ssh ccr-gpg thinkpad]; "thinkpad-wireguard-private-key.age".publicKeys = [ccr-ssh ccr-gpg thinkpad];