steps:
- name: scp files
image: appleboy/drone-scp
pull: if-not-exists
volumes: #
- name: file-scp
path: /app/build
settings:
host:
from_secret: host
username:
from_secret: username
key:
from_secret: key
port:
from_secret: port
target: /app/shell/share-web
source: build.sh
command_timeout: 2m
script:
- cd /app/shell
- chmod +x build.sh
- sh build.sh
volumes:
- name: file-scp
host:
path: /home/centos/app/build
tar all files into /tmp/872159610/tJAPMyIfHx.tar
scp file to server.
drone-scp error: error copy file to dest: ******, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2022/11/30 07:25:19 error copy file to dest: ******, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
settting
console log