From 7223981280a024fbb601180907e13c97325f2207 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 26 Dec 2023 15:01:33 +0000 Subject: [PATCH] done: use sshkey from secret, not file update to appleboy/drone-ssh requires special ownership of the ssh key file, which I can't be bothered with, so we'll source it from a secret instead. Probably better anyway, that's how the other key was already. --- .drone.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 86df18a..d050101 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,9 +45,6 @@ type: docker steps: - name: build-deploy image: appleboy/drone-ssh - volumes: - - name: ssh_key - path: /root/drone_rsa settings: host: from_secret: ssh2_host @@ -55,9 +52,8 @@ steps: from_secret: ssh2_username port: from_secret: ssh2_port - volumes: - - /root/.ssh/docker-build:/root/drone_rsa - key_path: /root/drone_rsa + key: + from_secret: ssh2_key command_timeout: 50m script: - /mnt/buildx/jfa-go/build.sh stable @@ -128,9 +124,6 @@ type: docker steps: - name: build-deploy image: appleboy/drone-ssh - volumes: - - name: ssh_key - path: /root/drone_rsa environment: BUILDRONE_KEY: from_secret: BUILDRONE_KEY @@ -141,11 +134,10 @@ steps: from_secret: ssh2_username port: from_secret: ssh2_port - volumes: - - /root/.ssh/docker-build:/root/drone_rsa envs: - buildrone_key - key_path: /root/drone_rsa + key: + from_secret: ssh2_key command_timeout: 50m script: - /mnt/buildx/jfa-go/build.sh