You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
Dockerfile | 5 years ago | |
Makefile | 5 years ago | |
README.md | 5 years ago | |
drone-ssh-keys.sh | 5 years ago |
README.md
drone-rsync-ssh
A Dockerfile for rsync+ssh deploys using Drone.
- In Drone, add repository secrets for
ssh_private_key
andssh_host_key
- In your
.drone.yml
, rundrone-ssh-keys
to inject SSH secrets into~/.ssh
Sample .drone.yml
Here's a sample .drone.yml
that injects the SSH keys, rsyncs files to a host,
then triggers a command on the host.
pipeline:
deploy:
image: images.abackstrom.com/rsync-ssh
secrets: [ ssh_private_key, ssh_host_key ]
commands:
- drone-ssh-keys
- rsync -Chrz -e ssh ./public user@host:/var/www/html
- ssh user@host 'sudo systemctl reload nginx'
Building the image
make image IMAGE_NAME=your_name_here