Rephrase caching
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details

main
mat ess 2022-12-22 01:17:07 -05:00
parent d77a5ec61c
commit f2634b2645
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
local PROD = 'production'; local PROD = 'production';
local STAGE = 'staging'; local STAGE = 'staging';
local NIX = 'nix --extra-experimental-features nix-command --extra-experimental-features flakes --eval-store local --store /tmp/cache '; local NIX = 'nix --extra-experimental-features nix-command --extra-experimental-features flakes ';
local VOLUMES = [ local VOLUMES = [
{ name: 'site', path: '/site' }, { name: 'site', path: '/site' },
{ name: 'cache', path: '/tmp/cache' }, { name: 'cache', path: '/tmp/cache' },
@ -45,7 +45,7 @@ local NixStep(env) =
local prod = env == PROD; local prod = env == PROD;
local output = if prod then '' else ' .#staging-site'; local output = if prod then '' else ' .#staging-site';
Step(env, 'nix build', [ Step(env, 'nix build', [
NIX + 'build' + output, NIX + 'build --store /tmp/cache --eval-store local' + output,
'cp -r result/* /site/', 'cp -r result/* /site/',
]); ]);