Browse Source

drone: deploy with new rsync-ssh image

pull/1/head
Annika Backstrom 1 year ago
parent
commit
5d10853844
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      .drone.yml

+ 2
- 5
.drone.yml View File

@@ -10,13 +10,10 @@ pipeline:
- pelican content -o output -s publishconf.py

deploy:
image: images.abackstrom.com/pelican
image: images.abackstrom.com/rsync-ssh
secrets: [ ssh_private_key, ssh_host_key ]
commands:
- mkdir "$${HOME}/.ssh"
- echo -n "$${SSH_PRIVATE_KEY}" > "$${HOME}/.ssh/id_rsa"
- chmod 700 "$${HOME}/.ssh/id_rsa"
- echo "$${SSH_HOST_KEY}" >> "$${HOME}/.ssh/known_hosts"
- drone-ssh-keys
- rsync -hrz --delete -C --exclude=".*" -e ssh ./output ./nginx ./assets deploy@web04.sixohthree.com:sixohthree.com/
- ssh deploy@web04.sixohthree.com 'sudo /usr/sbin/service nginx reload'


Loading…
Cancel
Save