From 06e677172b30c899921ddda71686d8890286bf8e Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Mon, 24 Oct 2022 00:58:11 +0530 Subject: [PATCH] ci: test woodpecker Signed-off-by: Amneesh Singh --- .woodpecker/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .woodpecker/ci.yml diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..d48f207 --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,18 @@ +pipeline: + build-and-deploy: + image: nixos/nix:latest + environment: + - LANG=en_US.UTF-8 + 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 build + - eval `ssh-agent -s` + - echo "$REMOTE_KEY" | ssh-add - + - site deploy + + secrets: [ cachix_auth_token, cachix_name, remote_key ]