fixup! ci: test woodpecker
Some checks failed
ci/woodpecker/push/ci Pipeline failed

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-24 03:48:50 +05:30
parent 2d6d3a7d33
commit 328819d9e9

View File

@@ -2,13 +2,16 @@ pipeline:
build-and-deploy:
image: nixos/nix:latest
commands:
- nix-env -iA nixpkgs.cachix nixpkgs.rsync
- nix-env -iA nixpkgs.cachix nixpkgs.rsync nixpkgs.jq
- cachix use $CACHIX_NAME
- cachix watch-exec pain nix -- --extra-experimental-features "nix-command flakes" -L shell .#site
- nix -- --extra-experimental-features "nix-command flakes" -L build .#site \
jq -r '.[].outputs | to_entries[].value' \
cachix push $CACHIX_NAME
- nix -- --extra-experimental-features "nix-command flakes" -L shell .#site
- site clean
- site rebuild
- eval `ssh-agent`
- echo $REMOTE_KEY | tr -d '\r' | ssh-add -
- echo $REMOTE_KEY
- site deploy
secrets: [ cachix_auth_token, cachix_name, remote_key ]