updated DOCs
This commit is contained in:
@@ -12,7 +12,8 @@ The following parameters are used to configure the plugin:
|
|||||||
- **exclude** - rsync exclude filter
|
- **exclude** - rsync exclude filter
|
||||||
- **recursive** - recursively synchronize, defaults to `false`
|
- **recursive** - recursively synchronize, defaults to `false`
|
||||||
- **delete** - delete target folder contents, 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
|
## Secrets
|
||||||
The following secrets can be used to secure the sensitive parts of your configuration:
|
The following secrets can be used to secure the sensitive parts of your configuration:
|
||||||
@@ -73,7 +74,7 @@ steps:
|
|||||||
- "app.tar.gz.md5"
|
- "app.tar.gz.md5"
|
||||||
exclude:
|
exclude:
|
||||||
- "**.*"
|
- "**.*"
|
||||||
script:
|
postscript:
|
||||||
- cd ~/packages
|
- cd ~/packages
|
||||||
- md5sum -c app.tar.gz.md5
|
- md5sum -c app.tar.gz.md5
|
||||||
- tar -xf app.tar.gz -C ~/app
|
- tar -xf app.tar.gz -C ~/app
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ docker run --rm \
|
|||||||
-e PLUGIN_HOSTS="127.0.0.1, 127.0.0.2, 127.0.0.3" \
|
-e PLUGIN_HOSTS="127.0.0.1, 127.0.0.2, 127.0.0.3" \
|
||||||
-e PLUGIN_PORTS="22, 23, 24" \
|
-e PLUGIN_PORTS="22, 23, 24" \
|
||||||
-e PLUGIN_TARGET="./" \
|
-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" \
|
-e PLUGIN_ARGS="--blocking-io" \
|
||||||
-v $(pwd):$(pwd) \
|
-v $(pwd):$(pwd) \
|
||||||
-w $(pwd) \
|
-w $(pwd) \
|
||||||
|
|||||||
Reference in New Issue
Block a user