This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable deployment by rsync
The contents of this commit were generated by the following methodology. 1. `travis login` 2. Create a dedicated SSH key (no passphrase) `ssh-keygen -t rsa -b 4096 -C 'email@example.com' -f ./deploy_rsa` 3. Get Travis to encrypt the file. `--add` automatically adds it to .travis. It prints out a helpful output reminding you to only commit the .enc version NOT the deploy_rsa itself! `travis encrypt-file deploy_rsa --add` https://docs.travis-ci.com/user/encrypting-files/ 4. Copy the public key to the remote host `ssh-copy-id -i deploy_rsa.pub <ssh-user>@<deploy-host>` 5. Delete the public key and the private key as they are no longer needed, you only need the encrypted key `rm -f deploy_rsa deploy_rsa.pub` 6. I also encrypted the SSH user and host `travis encrypt SOMEVAR="secretvalue" --add` https://docs.travis-ci.com/user/encryption-keys and deleted the FTP variables as they are no longer required This heavily used the Travis documentation, supplemented by this blog post: https://oncletom.io/2016/travis-ssh-deploy/
- Loading branch information
Showing 3 changed files with 6 additions and 3 deletions.