From 9d8a96482268c7b656c76a507ffa23c8c4a10764 Mon Sep 17 00:00:00 2001 From: ewen Date: Fri, 4 Feb 2022 06:04:41 +0000 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f1088fc..e4cc462 100644 --- a/.drone.yml +++ b/.drone.yml @@ -51,7 +51,7 @@ steps: from_secret: SCP_USER SCP_PORT: from_secret: SCP_PORT - SCP_TARGET: + SCP_TARGET_DIRECTORY: from_secret: SCP_TARGET_DIRECTORY SCP_COMMAND: from_secret: SCP_COMMAND @@ -62,7 +62,8 @@ steps: - ssh-keyscan -t rsa -p $SCP_PORT $SCP_HOSTNAME >> $HOME/.ssh/known_hosts - chmod -R og-rw $HOME/.ssh/ - scp -rv -P $SCP_PORT -i $HOME/.ssh/id_rsa public $SCP_USER@$SCP_HOSTNAME:~/ - - ssh -p $SCP_PORT -i $HOME/.ssh/id_rsa $SCP_USER@$SCP_HOSTNAME 'rm -rvf $SCP_TARGET_DIRECTORY/*; mv ~/public/* $SCP_TARGET_DIRECTORY; ~/$SCP_COMMAND' + - ssh -p $SCP_PORT -i $HOME/.ssh/id_rsa $SCP_USER@$SCP_HOSTNAME 'rm -rvf $SCP_TARGET_DIRECTORY/*; mv ~/public/* $SCP_TARGET_DIRECTORY; ~/$SCP_COMMAND; rm -rvf ~/public' + #- ssh -p $SCP_PORT -i $HOME/.ssh/id_rsa $SCP_USER@$SCP_HOSTNAME 'rm -rvf $SCP_TARGET_DIRECTORY/*; mv ~/public/* $SCP_TARGET_DIRECTORY; ~/$SCP_COMMAND' #- name: rereveille_toi # image: appleboy/drone-ssh