diff --git a/1-DOCS.md b/1-DOCS.md index e0530c8..9b08fb8 100644 --- a/1-DOCS.md +++ b/1-DOCS.md @@ -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 diff --git a/README.md b/README.md index c296860..7b1f930 100644 --- a/README.md +++ b/README.md @@ -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) \