diff options
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 6 |
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" |