From 328819d9e93a86cb3b18a86e24f447cf0e14a6fe Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Mon, 24 Oct 2022 03:48:50 +0530 Subject: [PATCH] fixup! ci: test woodpecker Signed-off-by: Amneesh Singh --- .woodpecker/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 7784c69..b7d0d00 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -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 ]