You have to set the username and password for your SFTP server in the username
and password
secret.
settings:
host: ssh.strato.de
username:
from_secret: username
password:
from_secret: password
source: relative/dir/in/project
target: /absolute/dir/on/server
settings:
debug: true
exclude: (egrep like pattern matching)
kind: pipeline
name: default
type: docker
steps:
- name: deploy
image: axute/drone-sftp
settings:
host: ssh.strato.de
source: relative/dir/in/project
target: /absolute/dir/on/server
username:
from_secret: username
password:
from_secret: password
debug: true
exclude:
- ^\.git/$
- ^\cache/$
when:
branch:
- master
event:
- push