add volume cache

This commit is contained in:
Cyryl Płotnicki 2022-11-08 18:10:50 +00:00
parent 031a2bfd7d
commit a87dd71bbd

View file

@ -5,6 +5,8 @@ pipeline:
commands: commands:
- nix --no-sandbox flake info - nix --no-sandbox flake info
- nix --no-sandbox develop -c statix check - nix --no-sandbox develop -c statix check
volumes:
- /var/lib/woodpecker/cache/nixstore:/nix/store
push-to-sourcehut: push-to-sourcehut:
image: nixpkgs/nix-flakes:latest image: nixpkgs/nix-flakes:latest
@ -16,6 +18,7 @@ pipeline:
- echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub - echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub
- echo "StrictHostKeyChecking=accept-new" >> ~/.ssh/config - echo "StrictHostKeyChecking=accept-new" >> ~/.ssh/config
- chmod 0400 ~/.ssh/ -R - chmod 0400 ~/.ssh/ -R
- ls -hal ~/.ssh/
- git remote add sourcehut git@git.sr.ht:~cyplo/dotfiles - git remote add sourcehut git@git.sr.ht:~cyplo/dotfiles
- git push sourcehut --tags --force-with-lease - git push sourcehut --tags --force-with-lease
- git push sourcehut --all --force-with-lease - git push sourcehut --all --force-with-lease