We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e6fb8 commit a0949daCopy full SHA for a0949da
nix/cachix.nix
@@ -115,10 +115,14 @@ in
115
services.buildbot-nix.master.postBuildSteps = [
116
{
117
name = "Upload cachix";
118
- environment = {
119
- CACHIX_SIGNING_KEY = bb-lib.interpolate "%(secret:cachix-signing-key)s";
120
- CACHIX_AUTH_TOKEN = bb-lib.interpolate "%(secret:cachix-auth-token)s";
121
- };
+ environment = lib.mkMerge [
+ (lib.optionalAttrs (cfg.cachix.auth ? "signingKey") {
+ CACHIX_SIGNING_KEY = bb-lib.interpolate "%(secret:cachix-signing-key)s";
+ })
122
+ (lib.optionalAttrs (cfg.cachix.auth ? "authToken") {
123
+ CACHIX_AUTH_TOKEN = bb-lib.interpolate "%(secret:cachix-auth-token)s";
124
125
+ ];
126
command = [
127
"cachix" # note that this is the cachix from the worker's $PATH
128
"push"
0 commit comments