Browse Source

drone: use new deploy image

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

+ 3
- 5
.drone.yml View File

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

deploy:
image: images.abackstrom.com/rsync-ssh
secrets: [ ssh_private_key, ssh_host_key ]
image: images.abackstrom.com/rsync-ssh:2
commands:
- drone-ssh-keys
- rsync -hrz --delete -C --exclude=".*" -e ssh ./output ./nginx ./assets deploy@web04.sixohthree.com:/var/sixohthree/sixohthree.com
- ssh deploy@web04.sixohthree.com 'sudo systemctl reload nginx'
- rsync -hrz --delete -C -e ssh ./output ./nginx ./assets web04:/var/sixohthree/sixohthree.com
- ssh web04 'sudo systemctl reload nginx'

branches: master

Loading…
Cancel
Save