From 4a72ff40a06cd3b7ea24d6f17bd7e99de729c4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 8 Nov 2022 19:41:48 +0000 Subject: [PATCH] add cache plugin --- .woodpecker.yml | 11 +++++++++-- nixos/boxes/vpsfree1/woodpecker.nix | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 330da1bf..85437175 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,10 +1,17 @@ pipeline: + restore-cache: + image: drillster/drone-volume-cache + settings: + restore: true + mount: + - /nix/store + volumes: + - /var/lib/woodpecker/cache/nixstore:/cache + check: image: nixpkgs/nix-flakes:latest pull: true commands: - nix --no-sandbox flake info - nix --no-sandbox develop -c statix check - volumes: - - /var/lib/woodpecker/cache/nixstore:/nix/store diff --git a/nixos/boxes/vpsfree1/woodpecker.nix b/nixos/boxes/vpsfree1/woodpecker.nix index 832238e3..2a97ed79 100644 --- a/nixos/boxes/vpsfree1/woodpecker.nix +++ b/nixos/boxes/vpsfree1/woodpecker.nix @@ -3,7 +3,7 @@ let httpPort = 8000; agentPort = 9000; domain = "ci.cyplo.dev"; - path = "/var/lib/woodpecker"; + path = "/var/lib/woodpecker/data"; serverContainerName = "woodpecker-server"; in {