cschlosser / drone-ftps

Deploy to FTPS server from Drone CI build
https://hub.docker.com/r/cschlosser/drone-ftps/
Apache License 2.0
20 stars 16 forks source link

Fix PLUGIN_EXCLUDE and PLUGIN_INCLUDE #19

Closed josevavia closed 3 years ago

josevavia commented 3 years ago

For use regexp in include/exclude, it is needed to surround the expresion sent to lftp in single quotes

With this fix, you can config your include/exclude setting with a regexp, for example:

PLUGIN_EXCLUDE: ^(\..+|bbdd/|deploy/|nbproject/|composer.+|phpdoc\.xml|sonar-project\.properties)$

In my example, I ignore:

Without this fix, the following error occurs:

mirror: regular expression `^(\..+': Unmatched ( or \(