add cache plugin
This commit is contained in:
parent
bf34591da3
commit
4a72ff40a0
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue