ssh-deploy
ssh-deploy copied to clipboard
how to add a folder to whitelist?
I need deploy directory /data/www/, but I don't want to overwrite /data/www/a/b/, is there any way to implement this?
I have the same situation I want to keep images folder between deploys
Setting ARGS, you can add an rsync --exclude flag. So, for example:
- name: deploy
uses: easingthemes/[email protected]
env:
ARGS: "-rltgoDzvO --delete --exclude=images"
I have some default images on it so I have to include it and while developing maybe we will add some other default images too so that I want to merge the images folder but I don't want to merge other folders right now I'm using the following ARGS
-rltgoDzvO
It will merge all other folders but I want only to merge the images folder, not others.
is there any solution for my situation?
--exclude is using a pattern match, same as --include.
So for special use case you can combine both with * if eg your default images have some special naming rule.