From a4c6f5994dfab1a49ec5756619f7148a00067671 Mon Sep 17 00:00:00 2001 From: Crystal Date: Fri, 19 Apr 2024 19:34:30 +0100 Subject: drone.yml update N⁰2 and 3/2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 12e2c42..69f79f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,10 +12,14 @@ steps: commands: # Ensure key data is not accidentally logged - apk update - - apk install openssh + - apk add openssh - echo "$KEY_DATA" | tr -d '\r' > /tmp/drone_key # Remove carriage returns (if any) and store in temp file - chmod 600 /tmp/drone_key # Set strict permissions + - eval "$(ssh-agent -s)" # Start SSH agent + + # Add the private key to the agent securely + - ssh-add /tmp/drone_key # Replace with actual server details (host, username, command) - ssh crystal@tilde.institute -i /tmp/drone_key "touch hello_im_emu" -- cgit 1.4.1-2-gfad0