From 8f1d6497e950207ea6f47925ed631b31b7dcea1c Mon Sep 17 00:00:00 2001 From: ewen Date: Thu, 3 Feb 2022 20:10:42 +0000 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index a13f1dd..7629a32 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,21 @@ steps: # target: {from_secret: SCP_TARGET_DIRECTORY} # #target: /srv/apps/blog/data/www/public # rm: true +- name: clone + environment: + SSH_KEY: + from_secret: SCP_KEY + SSH_HOSTNAME: + from_secret: SCP_HOSTNAME + SSH_USER: + from_secret: SCP_USER + SSH_PORT: + from_secret: SCP_PORT + SSH_TARGET: + from_secret: SCP_TARGET_DIRECTORY + commands: + - echo "$SCP_KEY" > $HOME/.ssh/id_rsa + - scp -rP public/ $SCP_PORT $SCP_USER@$SCP_HOSTNAME:$SCP_TARGET_DIRECTORY - name: rereveille_toi image: appleboy/drone-ssh