Update README to drone 1.0.0

This commit is contained in:
Christoph Schlosser 2019-05-17 20:15:51 +02:00 committed by GitHub
parent 13ab12a0c5
commit f99d405a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,53 +9,64 @@
You have to set the username and password for your FTP server in the `FTP_USERNAME` and `FTP_PASSWORD` secret. You have to set the username and password for your FTP server in the `FTP_USERNAME` and `FTP_PASSWORD` secret.
### Basic
## Optional settings
```yaml ```yaml
pipeline: environment:
deploy: FTP_USERNAME:
image: cschlosser/drone-ftps from_secret: username
hostname: example.com:21 FTP_PASSWORD:
secrets: [ ftp_username, ftp_password ] from_secret: password
PLUGIN_HOSTNAME: example.com:21
PLUGIN_DEST_DIR: /path/to/dest (default /)
PLUGIN_SRC_DIR: /path/to/dest (default ./)
PLUGIN_SECURE: true | false (default true)
PLUGIN_VERIFY: false
PLUGIN_EXCLUDE: (egrep like pattern matching)
PLUGIN_INCLUDE: (egrep like pattern matching)
``` ```
### Optional settings ## Full file example
```yaml ```yaml
secure: true | false (default true) kind: pipeline
name: default
dest_dir: /path/to/dest (default /) steps:
- name: master_build
image: cschlosser/drone-ftps
environment:
FTP_USERNAME:
from_secret: username
FTP_PASSWORD:
from_secret: password
PLUGIN_HOSTNAME: example.com:21
src_dir: /path/to/src (default ./) PLUGIN_SECURE: false
PLUGIN_VERIFY: false
PLUGIN_EXCLUDE: ^\.git/$
when:
branch:
- master
event:
- push
exclude: (egrep like pattern matching) - name: develop_build
- ^\.git/$ image: cschlosser/drone-ftps
- ^\.gitignore$ environment:
- ^\.drone.yml$ FTP_USERNAME:
from_secret: username
include: like exclude FTP_PASSWORD:
``` from_secret: password
PLUGIN_HOSTNAME: example.com:21
Full file: PLUGIN_DEST_DIR: /develop
PLUGIN_SECURE: false
```yaml PLUGIN_VERIFY: false
pipeline: PLUGIN_EXCLUDE: ^\.git/$
deploy: when:
image: cschlosser/drone-ftps branch:
hostname: example.com:21 - develop
secrets: [ ftp_username, ftp_password ] event:
secure: true (default) | false # true = use FTP(S), false = FTP without SSL - push
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$
``` ```