Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
16
.woodpecker/ci.yml
Normal file
16
.woodpecker/ci.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
pipeline:
|
||||||
|
build-and-deploy:
|
||||||
|
image: nixos/nix:latest
|
||||||
|
environment:
|
||||||
|
- NIX_FLAGS=--extra-experimental-features "nix-command flakes"
|
||||||
|
commands:
|
||||||
|
- nix-env -iA nixpkgs.cachix
|
||||||
|
- cachix use $CACHIX_NAME
|
||||||
|
- cachix watch-exec pain nix -- $NIX_FLAGS shell .#site
|
||||||
|
- site clean
|
||||||
|
- site rebuild
|
||||||
|
- eval `ssh-agent`
|
||||||
|
- echo $REMOTE_KEY | ssh-add -
|
||||||
|
- site deploy
|
||||||
|
|
||||||
|
secrets: [ cachix_auth_token, cachix_name, remote_key ]
|
||||||
Reference in New Issue
Block a user