Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.19 KB

README.md

File metadata and controls

57 lines (48 loc) · 1.19 KB

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