updated DOCs

This commit is contained in:
Jesse Quinn
2019-11-27 09:59:20 -03:00
parent 453b74ab9c
commit 8acd960634
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ The following parameters are used to configure the plugin:
- **exclude** - rsync exclude filter
- **recursive** - recursively synchronize, defaults to `false`
- **delete** - delete target folder contents, defaults to `false`
- **script** - list of commands to execute on remote machines
- **prescript** - list of commands to execute on remote machines before rsync occurs
- **postscript** - list of commands to execute on remote machines after rsync occurs
## Secrets
The following secrets can be used to secure the sensitive parts of your configuration:
@@ -73,7 +74,7 @@ steps:
- "app.tar.gz.md5"
exclude:
- "**.*"
script:
postscript:
- cd ~/packages
- md5sum -c app.tar.gz.md5
- tar -xf app.tar.gz -C ~/app

View File

@@ -24,7 +24,8 @@ docker run --rm \
-e PLUGIN_HOSTS="127.0.0.1, 127.0.0.2, 127.0.0.3" \
-e PLUGIN_PORTS="22, 23, 24" \
-e PLUGIN_TARGET="./" \
-e PLUGIN_SCRIPT="echo \"Done!\"" \
-e PLUGIN_PRESCRIPT="echo \"Prescript Done!\"" \
-e PLUGIN_POSTSCRIPT="echo \"Postscript Done!\"" \
-e PLUGIN_ARGS="--blocking-io" \
-v $(pwd):$(pwd) \
-w $(pwd) \