My pipeline deploy all files. I want it to deploy only files that have changed. I added '-u' option in 'EXTRA_ARGS', but it didn't work. Here is my code.
- step:
name: Test Deploy
deployment: Test
script:
- pipe: atlassian/rsync-deploy:0.5.0
variables:
USER: $RSYNC_USER
SERVER: $RSYNC_SERVER
SSH_PORT: $RSYNC_SSH_PORT
REMOTE_PATH: '/home/myname/public_html/'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/html/'
DEBUG: 'true'
DELETE_FLAG: 'false'
EXTRA_ARGS: '-uv --exclude=.htaccess --exclude=.htpasswd --exclude=.env'
Am I missing something?
I resolved my issue with thesw flags -c (checksum) and --update
EXTRA_ARGS: '-c --update ${BITBUCKET_CLONE_DIR}/'
Try maybe this one below
EXTRA_ARGS: '-uv -c ${BITBUCKET_CLONE_DIR}/html/ --exclude=.htaccess --exclude=.htpasswd --exclude=.env'
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.