Rework cache
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
013246d114
commit
a77b87a344
|
@ -1,6 +1,5 @@
|
||||||
local PROD = 'production';
|
local PROD = 'production';
|
||||||
local STAGE = 'staging';
|
local STAGE = 'staging';
|
||||||
local VOLUMES = { name: 'site', path: '/site' };
|
|
||||||
local NIX = 'nix --extra-experimental-features nix-command --extra-experimental-features flakes';
|
local NIX = 'nix --extra-experimental-features nix-command --extra-experimental-features flakes';
|
||||||
|
|
||||||
local Secrets(secrets) = {
|
local Secrets(secrets) = {
|
||||||
|
@ -24,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' },
|
{ name: 'cache', path: '/nix/store' },
|
||||||
],
|
],
|
||||||
commands: cmds,
|
commands: cmds,
|
||||||
when: WhenProd(prod),
|
when: WhenProd(prod),
|
||||||
|
@ -53,7 +52,7 @@ local DeployStep(env) =
|
||||||
|
|
||||||
volumes: [
|
volumes: [
|
||||||
{ name: 'site', temp: {} },
|
{ name: 'site', temp: {} },
|
||||||
{ name: 'cache', host: { path: '/data/nix' } },
|
{ name: 'cache', host: { path: '/data/cache' } },
|
||||||
],
|
],
|
||||||
|
|
||||||
steps: [
|
steps: [
|
||||||
|
|
Loading…
Reference in New Issue