appleboy / drone-scp

Copy files and artifacts via SSH using a binary, docker or Drone CI.
MIT License
142 stars 29 forks source link

The path is incorrect. #131

Closed bbhxwl closed 1 year ago

bbhxwl commented 2 years ago

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/

geek-at commented 2 years ago

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

lixh00 commented 1 year ago

I set strip_components to 1 and it works.