Deploy to FTPS server from Drone CI build
Go to file
Christoph Schlosser 13ab12a0c5
Use alpine:edge to get lftp 4.8.4
The new lftp version contains important bug fixes #11
2018-09-12 21:54:07 +02:00
Dockerfile Use alpine:edge to get lftp 4.8.4 2018-09-12 21:54:07 +02:00
LICENSE Create LICENSE 2017-10-26 02:37:13 +02:00
README.md Rename to CLEAN_DIR and readme update 2018-03-05 10:07:13 +08:00
upload.sh Rearrange code order 2018-03-05 10:09:46 +08:00

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 (default) | false # true = use FTP(S), false = FTP without SSL
    verify: true (default) | false # true = strong SSL verification, false = supress SSL verification error
    chmod: true (default) | false # true = chmod after file transferred, false = no chmod after file transferred
    clean_dir: true | false (default) # true = clean destination directory before transferring files, false = don't clean
    dest_dir: /var/www/mysite
    src_dir: /mysite/static
    exclude:
      - ^\.git/$
      - ^\.gitignore$
      - ^\.drone.yml$
    include:
      - ^*.css$
      - ^*.js$
      - ^*.html$