drone-ftps/README.md
servusoft 75c81f26ba
Update README.md
typo
2018-02-11 16:15:08 +01:00

1.6 KiB

Deploy to FTP(S) server from Drone CI

Docker Stars Docker Pulls Docker Build Docker Layers

Usage

You have to set the username and password for your FTP server in the FTP_USERNAME and FTP_PASSWORD secret.

Basic

pipeline:
  deploy:
    image: cschlosser/drone-ftps
    hostname: example.com:21
    secrets: [ ftp_username, ftp_password ]

Optional settings

secure: true | false (default true)

dest_dir: /path/to/dest (default /)

src_dir: /path/to/src (default ./)

exclude: (egrep like pattern matching)
  - ^\.git/$
  - ^\.gitignore$
  - ^\.drone.yml$

include: like exclude

Full file:

pipeline:
  deploy:
    image: cschlosser/drone-ftps
    hostname: example.com:21
    secrets: [ ftp_username, ftp_password ]
    secure: true | false # true = use FTP(S), false = FTP without SSL
    verify: true | false # true = strong SSL verification, false = supress SSL versification error
    dest_dir: /var/www/mysite
    src_dir: /mysite/static
    exclude:
      - ^\.git/$
      - ^\.gitignore$
      - ^\.drone.yml$
    include:
      - ^*.css$
      - ^*.js$
      - ^*.html$