Deploy to FTPS server from Drone CI build
Go to file
Christoph Schlosser ad68aa94d7 Create LICENSE
2017-10-26 02:37:13 +02:00
Dockerfile Add upload script and use bash 2017-10-26 02:02:22 +02:00
LICENSE Create LICENSE 2017-10-26 02:37:13 +02:00
README.md Update README 2017-10-26 02:32:43 +02:00
upload.sh Add upload script and use bash 2017-10-26 02:02:22 +02:00

Deploy to FTP(S) server from Drone CI

Docker Stars Docker Pulls Docker Build Docker Layers

Usage

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

Basic

pipeline:
  deploy:
    image: cschlosser/drone-ftps
    username: drone
    hostname: example.com:21
    secrets: [ 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
    username: drone
    hostname: example.com:21
    secrets: [ ftp_password ]
    secure: true
    dest_dir: /var/www/mysite
    src_dir: /mysite/static
    exclude:
      - ^\.git/$
      - ^\.gitignore$
      - ^\.drone.yml$
    include:
      - ^*.css$
      - ^*.js$
      - ^*.html$