-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep images folder between deploys #5
Comments
Hello, sure thing! Simply use the --exclude switch or the --filter switch. Here is an example (assuming your image folder is located at /var/www/images): jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete --exclude="images"
path: src/
remote_path: /var/www/html/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }} If your images folder is located at a deeper level and not at remote_path, simply adjust the path to your folder in the --exclude switch: --exclude="public/images" Greetings, Steve |
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 SWITCHES |
Yes you could use the --include switch to only have the images folder deployed by rsync. If you wish to keep certain images (default images) but not all of them, you could combine --include and --exclude as shown above, or use a filter. Example with --include/exclude: Example with --filter:
Now you can use that filter with the --filter switch: |
If you need further help, feel free to re-open this issue. |
just in case anyone else has trouble trying to use something like thanks for a great action (: |
feat(deps): update alpine base image
I have
images
folder on my website which stores user's uploaded images so that I want to keep this folder between deploys to not be deleted with sync.Is there a way to achieve that??
The text was updated successfully, but these errors were encountered: