drone-scp icon indicating copy to clipboard operation
drone-scp copied to clipboard

The path is incorrect.

Open bbhxwl opened this issue 4 years ago • 1 comments

I execute the following code to put all the files under /root/Web/ under /var/www/ , and I finally get /var/www /root/Web/

drone-scp --host **** --port 2222 --username ${{ secrets.SSH_USERNAME }} --password ${{ secrets.AIDELIPWD }} --target /var/www/ --source /root/web/

bbhxwl avatar Jan 17 '22 05:01 bbhxwl

having the same problems. So i either have to push from root (source: ./) but then it also pushes all of .git and the drone.yml itself, or push source: web and then have the folder "web" add on my target folder. Quite annoying

geek-at avatar Jan 24 '22 07:01 geek-at

I set strip_components to 1 and it works.

lixh00 avatar Oct 31 '22 09:10 lixh00