Closed weisd closed 5 years ago
I will test the new drone version asap.
Invalid yaml, should look like this
- name: push
image: appleboy/drone-scp
settings:
host: xxx
username: drone
ssh_key:
from_secret: drone
source: dist
target: /home/drone/dist
@weisd Please try the @replicant0wnz solution.
@appleboy
@replicant0wnz
I have encountered this error
I use drone 1.0.0-rc.5, the yml config is
- name: deploy
image: appleboy/drone-scp
when:
status:
- success
settings:
host:
from_secret: deploy_host
port:
from_secret: deploy_port
key:
from_secret: deploy_rsa
username:
from_secret: deploy_username
target:
from_secret: web_path
source: public
strip_components: 1
then I got the same error
missing ssh config (Host, Username)
Please try the plain text like below:
- name: scp
image: appleboy/drone-scp
pull: true
settings:
host: example.com
username: deploy
key:
from_secret: deploy_key
target: /home/deploy/gobento
rm: true
source:
- release/*
- Dockerfile
- docker-compose.yml
when I use drone 1.0.0-rc.1, the yml config is
then I got the error