drone.yml update N⁰2 and 3/2
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a4c6f5994d
commit
13a6ab5e62
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user