When using pipe: atlassian/sftp-deploy:0.5.2, how when I delete a file/folder from my repo can I automatically delete the same file/folder on my webserver.
bitbucket-pipelines.yml
pipelines:
default:
- step:
name: Production
deployment: Production
# trigger: manual # Uncomment to make this a manual deployment.
script:
- pipe: atlassian/sftp-deploy:0.5.2
variables:
USER: '$SFTP_USERNAME'
PASSWORD: '$SFTP_PASSWORD'
SERVER: '$SFTP_SERVER'
LOCAL_PATH: '$SFTP_LOCAL_PATH'
REMOTE_PATH: '$SFTP_REMOTE_PATH'
DEBUG: 'true'
EXTRA_ARGS: '-P 22 -oStrictHostKeyChecking=no'