appleboy / drone-scp

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

the [overwrite] properties why didn't work? #138

Closed werewolf666 closed 1 year ago

werewolf666 commented 2 years ago

desc:

source file list:

docker-compose.yml
restart.sh
stop.sh

I try 2 ways,the problem still alive.

so,is my usage is wrong or other questions?

think you very much.

appleboy commented 1 year ago

Please ignore the file using ! symbol. Try the following config.

target: /data-test/web/${DRONE_REPO_NAME}
source:
  - ./deploy
  - !./deploy/docker-compose/docker-compose.yml
  - !./deploy/docker-compose/restart.sh
  - !./deploy/docker-compose/stop.sh
strip_components: 3