drone.yml update N⁰2 and 3/2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Crystal 2024-04-19 19:37:30 +01:00
parent a4c6f5994d
commit 13a6ab5e62

View File

@ -9,10 +9,14 @@ steps:
environment:
KEY_DATA:
from_secret: SSH_KEY_SECRET
KNOWN_HOSTS:
from_secret: KNOWN_HOSTS
commands:
# Ensure key data is not accidentally logged
- apk update
- apk add openssh
- mkdir ~/.ssh/
- echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
- 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