diff options
author | Crystal <crystal@wizard.tower> | 2024-04-19 19:37:30 +0100 |
---|---|---|
committer | Crystal <crystal@wizard.tower> | 2024-04-19 19:37:30 +0100 |
commit | 13a6ab5e62b3800075501b4fb8b039d7d00ca24a (patch) | |
tree | 2f181998e748139daf45ec10f2a96c3bbc90724b | |
parent | a4c6f5994dfab1a49ec5756619f7148a00067671 (diff) | |
download | www-13a6ab5e62b3800075501b4fb8b039d7d00ca24a.tar.gz |
drone.yml update N⁰2 and 3/2
-rw-r--r-- | .drone.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index 69f79f3..a785b21 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 |