You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.