Update README
This commit is contained in:
parent
6ae5a11253
commit
a2f7eaca54
61
README.md
61
README.md
@ -1 +1,60 @@
|
||||
# drone-ftps
|
||||
# Deploy to FTP(S) server from Drone CI
|
||||
|
||||
[](https://hub.docker.com/r/cschlosser/drone-ftps/)
|
||||
[](https://hub.docker.com/r/cschlosser/drone-ftps/)
|
||||
[](https://hub.docker.com/r/cschlosser/drone-ftps/)
|
||||
[](https://hub.docker.com/r/cschlosser/drone-ftps/)
|
||||
|
||||
## Usage
|
||||
|
||||
You have to set the password for your FTP server in the `FTP_PASSWORD` secret.
|
||||
|
||||
### Basic
|
||||
|
||||
```yaml
|
||||
pipeline:
|
||||
deploy:
|
||||
image: cschlosser/drone-ftps
|
||||
username: drone
|
||||
hostname: example.com:21
|
||||
secrets: [ ftp_password ]
|
||||
```
|
||||
|
||||
### Optional settings
|
||||
|
||||
```yaml
|
||||
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:
|
||||
|
||||
```yaml
|
||||
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$
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user