YAML for Transfer
Transfer files to remote servers via SSH/SFTP, FTP, or cloud storage.
YAML examples for Transfer
Transfer files to production server
yaml- action: Transfer files to production type: TRANSFER trigger_time: ON_EVERY_EXECUTION disabled: false input_type: BUILD_ARTIFACTS local_path: /build/dist remote_path: /var/www/html deletion_disabled: true use_temporary_files: false compress: true deployment_excludes: - '*.log' - '*.tmp' - .git/** deployment_includes: - '*.html' - '*.css' - '*.js' - images/** ignore_errors: false retry_interval: 60 retry_count: 3 timeout: 3600 targets: - target: prod-server type: SSH name: Production Server host: prod.example.com port: 22 path: /var/www auth: method: PASSWORD username: deployer password: $DEPLOY_PASSWORD tags: - production - web
Simple file transfer
yaml- action: Simple transfer type: TRANSFER trigger_time: ON_EVERY_EXECUTION local_path: /dist remote_path: /www targets: - target: server type: SSH host: example.com auth: method: PASSWORD username: user
Transfer files via FTP/FTPS
yaml- action: Upload files via FTPS type: TRANSFER local_path: / remote_path: Home/www deployment_excludes: - /assets - file.txt deployment_includes: - /assets/assets-new/ - /assets/file.txt targets: - target: ftps_target type: FTP secure: true host: ftp.example.com auth: username: ftp_user password: $FTP_PASSWORD
Transfer files to DigitalOcean
yaml- action: Transfer files to DigitalOcean type: TRANSFER local_path: / targets: - target: do_server type: DIGITAL_OCEAN host: buddy-tests port: 22 path: Home/www auth: username: root password: $DO_PASSWORD integration: digitalocean