ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

how to add a folder to whitelist?

Open soyadokio opened this issue 5 years ago • 3 comments

I need deploy directory /data/www/, but I don't want to overwrite /data/www/a/b/, is there any way to implement this?

soyadokio avatar Jul 10 '20 10:07 soyadokio

I have the same situation I want to keep images folder between deploys

kosratdev avatar Jul 28 '20 23:07 kosratdev

Setting ARGS, you can add an rsync --exclude flag. So, for example:

      - name: deploy
        uses: easingthemes/[email protected]
        env:
          ARGS: "-rltgoDzvO --delete --exclude=images"

bas-ie avatar Jul 30 '20 08:07 bas-ie

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?

kosratdev avatar Jul 30 '20 13:07 kosratdev

--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.

easingthemes avatar Jan 02 '23 22:01 easingthemes