appleboy / drone-scp

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

传输到目标主机的路径多了一层 #162

Closed hayye closed 1 year ago

hayye commented 1 year ago

我想把本地的dist文件夹下的文件传输到服务器/home/project/charging/dist.new/目录下,但是实际上传输完成后,目标服务器路径变成了/home/project/charging/dist.new/dist/ 这是我的配置文件: `

appleboy commented 1 year ago
  - name: scp files
    image: appleboy/drone-scp
    settings:
      host: example.com
      target: /home/deploy/web
      source: dist/release.tar.gz
+     strip_components: 1