From 66a4e303d4522b335510197a75464f5c66a4edaa Mon Sep 17 00:00:00 2001 From: Yann Verry Date: Wed, 26 Oct 2022 22:19:49 +0200 Subject: [PATCH] try to pass sshprivatekey --- .drone.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 73e92d7..58d99d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,21 +15,22 @@ steps: commands: - hugo_extended +steps: +- name: sshkey + image: alpine + environment: + SSH_KEY: + from_secret: ssh_key + commands: + - echo "$SSH_KEY" > ./sshprivate && chmod 400 ./sshprivate + steps: - name: scp files image: appleboy/drone-scp - volumes: - - name: sshkey - path: /sshprivate settings: host: "peach.verry.org" source: ./public target: ~/public username: yann-blog - key: /sshprivate - recursive: true - -volumes: -- name: sshkey - host: - path: /srv/docker/volumes/drone/sshkey/yann-blog \ No newline at end of file + key: ./sshprivate + recursive: true \ No newline at end of file