From c0547a896602609f1cd66b10c3e30146bed85e3b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 1 Apr 2023 18:24:12 +0100 Subject: [PATCH] fixup! ci: add Woodpecker CI workflow --- .woodpecker/check.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml index 562c221..76d7511 100644 --- a/.woodpecker/check.yml +++ b/.woodpecker/check.yml @@ -16,20 +16,25 @@ pipeline: image: bash environment: # Use trailing slash to sync to folder's *content* to the target - - SYNC_SOURCE=result/share/ + - SYNC_SOURCE=result/share/*.pdf + # Remove 'result/share/' prefix from file paths + - TAR_STRIP_COMPONENTS=2 + # Remove previous files from target directory + - SCP_RM=true secrets: - source: ssh_host - target: sync_host + target: scp_host - source: ssh_target - target: sync_target + target: scp_target - source: ssh_user - target: sync_username + target: scp_username - source: ssh_key - target: sync_key + target: scp_key - source: ssh_port - target: sync_port + target: scp_port commands: - - nix run github:ambroisie/nix-config#drone-rsync + - env + - nix run github:ambroisie/nix-config#drone-scp when: - event: push branch: main