Skip to content

axute/drone-sftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy to SFTP server from Drone CI
(username and password)

Docker Build Docker Layers

Usage

You have to set the username and password for your SFTP server in the username and password secret.

Required settings

settings:
  host: ssh.strato.de
  username:
    from_secret: username
  password:
    from_secret: password
  source: relative/dir/in/project
  target: /absolute/dir/on/server

Optional settings

settings:
  debug: true
  exclude: (egrep like pattern matching)

Full file example

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