diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..73e2c87 --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,17 @@ +pipeline: + build-and-deploy: + image: nixos/nix:latest + commands: + - nix-env -iA nixpkgs.cachix nixpkgs.rsync nixpkgs.jq + - cachix use $CACHIX_NAME + - 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 + - site deploy + + secrets: [ cachix_auth_token, cachix_name, remote_key ]