To whom it may concern,
Hoping someone can help me figure out what is wrong with my rsync-deploy pipeline. It seems to be re-deploying all code, rather than just the files that have changed.
pipelines:
branches:
master:
- step:
name: rsync
script:
- pipe: atlassian/rsync-deploy:0.8.1
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_HOST
REMOTE_PATH: $DEPLOY_PATH
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/
EXTRA_ARGS: '-apuv -c --update ${BITBUCKET_CLONE_DIR}/ --exclude-from=deployment-exclude-list.txt'
- ssh $DEPLOY_USER@$DEPLOY_HOST "cd ${DEPLOY_PATH}/ && composer install && sudo service php8.1-fpm restart"
I've tried to force it to check the checksum, but every time master is pushed to/merged in to, all files are changed on the server (timestamp is updated for every file, not just the changed files)
Thanks,
Alex
edit: put my reply in answer by mistake...can't delete an answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
--ignore-existing would skip all the files, because they exist on the server already
I want to only sync changed files in the latest change of master. The checksum of existing, non changed files shouldn't have changed as they haven't been edited.
But when rsync-deploy runs in docker container, all files are marked as changed for some reason, so the deploy pushes all files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.