From 3ba6d7dfb046e975b600c490083f131e85fe51c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Fri, 13 Jun 2025 10:38:49 +0200 Subject: [PATCH] Use drone-ssh --- .drone.yml | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/.drone.yml b/.drone.yml index 84c8ca4..f8cd961 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,29 +1,18 @@ ---- kind: pipeline -type: ssh -name: Tutorial - -server: - host: mephis.to - user: mephisto - ssh_key: - from_secret: rsa_key - -clone: - disable: false +type: docker +name: deploy-to-remote steps: - - name: clone - environment: - KEY: - from_secret: ssh_key - commands: - - echo "$KEY" > $HOME/.ssh/id_git_rsa - - git clone ssh://git@git.netz.org:222/mephisto/clubbing-content.git /home/mephisto/cc/content - - git checkout $DRONE_COMMIT - - - name: Show Environment - commands: - - whoami - - pwd - - hostname + - name: copy-file-over-ssh + image: appleboy/drone-ssh + settings: + host: mephis.to + username: mephisto + # You can use either password or ssh_key (see notes below) + ssh_key: + from_secret: ssh-key + port: 22 + script: +# - mkdir -p ~/destination/directory/ + - echo "Copying file to remote..." + - scp -r * mephisto@mephis.to:~/cc/content \ No newline at end of file