summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCrystal <crystal@wizard.tower>2024-04-19 19:34:30 +0100
committerCrystal <crystal@wizard.tower>2024-04-19 19:34:30 +0100
commita4c6f5994dfab1a49ec5756619f7148a00067671 (patch)
treedbd7e583c86c7883f193dd9975ca6637ee0c6869
parent2c95dd5c9d5cf4f893e6829d9233d28ae34b4220 (diff)
downloadwww-a4c6f5994dfab1a49ec5756619f7148a00067671.tar.gz
drone.yml update N⁰2 and 3/2
-rw-r--r--.drone.yml6
1 files changed, 5 insertions, 1 deletions
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"