Hi guys, I need a little assistance with my pipeline for deploy on ftp server.
I tried this pipeline:
image: wagnerstephan/bitbucket-git-ftp:latest
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
name: Test
deployment: production
script:
- git reset --hard
#- git ftp init -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST
- pipe: atlassian/ftp-deploy:0.3.7
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: $FTP_HOST
REMOTE_PATH: /test/my-remote-directory
EXTRA_ARGS: "--only-newer --exclude=bitbucket-pipelines.yml"
caches:
- composer
But for each deploy all file are overwritten. --only-newer option don't works, I think because every time git pull update the files date and overwrite existings.
Can I upload only new files (by size for example) or uplaod only changes from last commit?
I can't use rsync because my target server don't has ssh but only ftp.
Thanks & regards