fix(ci): deploy key 写入补尾换行 —— echo→printf (修复 libcrypto unsupported/SSH 255,pipeline #9)
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/push/main Pipeline was successful
This commit is contained in:
@@ -6,7 +6,7 @@ variables:
|
||||
- &ssh_setup |
|
||||
apk add --no-cache openssh-client rsync
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||
printf '%s\n' "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -H git.sxbh.ltd >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
Reference in New Issue
Block a user