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