Test if anything runs with cache
continuous-integration/drone/push Build encountered an error Details

main
mat ess 2022-12-22 00:22:31 -05:00
parent 4d0be4e6f7
commit 9778b56610
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ local Step(env, name, cmds, extras={}) =
image: 'nixos/nix:latest', image: 'nixos/nix:latest',
volumes: [ volumes: [
{ name: 'site', path: '/site' }, { name: 'site', path: '/site' },
// { name: 'cache', path: '/nix/store' }, { name: 'cache', path: '/nix/store' },
], ],
commands: cmds, commands: cmds,
when: WhenProd(prod), when: WhenProd(prod),
@ -33,6 +33,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', [
'echo test',
NIX + ' build' + output, NIX + ' build' + output,
'cp -r result/* /site/', 'cp -r result/* /site/',
]); ]);