Browse Source

Fix ssh key permissions

Colin Powell 2 years ago
parent
commit
6e09b4b57d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .drone.yml

+ 2 - 3
.drone.yml

@@ -21,9 +21,8 @@ steps:
       # Start with a fresh database (which is already running as a service from Drone)
       - hugo
       - mkdir ~/.ssh/
-      - echo $sshkey >  ~/.ssh/ed25519
-      - ssh-agent && ssh-add $sshkey
-      - rsync -avz --delete  ~/public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
+      - echo $sshkey >  ~/.ssh/ed25519 && chmod 0400 ~/.ssh/ed25519
+      - rsync -avz --delete  public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
 volumes:
   - name: docker
     host: