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:
10 10
       - pelican content -o output -s publishconf.py
11 11
 
12 12
   deploy:
13
-    image: images.abackstrom.com/pelican
13
+    image: images.abackstrom.com/rsync-ssh
14 14
     secrets: [ ssh_private_key, ssh_host_key ]
15 15
     commands:
16
-      - mkdir "$${HOME}/.ssh"
17
-      - echo -n "$${SSH_PRIVATE_KEY}" > "$${HOME}/.ssh/id_rsa"
18
-      - chmod 700 "$${HOME}/.ssh/id_rsa"
19
-      - echo "$${SSH_HOST_KEY}" >> "$${HOME}/.ssh/known_hosts"
16
+      - drone-ssh-keys
20 17
       - rsync -hrz --delete -C --exclude=".*" -e ssh ./output ./nginx ./assets deploy@web04.sixohthree.com:sixohthree.com/
21 18
       - ssh deploy@web04.sixohthree.com 'sudo /usr/sbin/service nginx reload'
22 19
 

Loading…
Cancel
Save