From 2c48bb009d5499364768ca734845965257d6349a Mon Sep 17 00:00:00 2001 From: mat ess Date: Thu, 22 Dec 2022 00:25:47 -0500 Subject: [PATCH] Add bootstrap test --- .drone.jsonnet | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index d3f141d..1d946cd 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -23,7 +23,7 @@ local Step(env, name, cmds, extras={}) = image: 'nixos/nix:latest', volumes: [ { name: 'site', path: '/site' }, - { name: 'cache', path: '/nix/store' }, + { name: 'cache', path: '/test' }, ], commands: cmds, when: WhenProd(prod), @@ -57,9 +57,12 @@ local DeployStep(env) = ], steps: [ - NixStep(STAGE), - NixStep(PROD), - DeployStep(STAGE), - DeployStep(PROD), + Step(STAGE, 'bootstrap test', [ + 'cp -r /nix/store/* /test', + ]), + // NixStep(STAGE), + // NixStep(PROD), + // DeployStep(STAGE), + // DeployStep(PROD), ], }