ci: show ssh-keygen error in deploy
This commit is contained in:
@@ -99,7 +99,7 @@ jobs:
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keygen -y -f ~/.ssh/id_ed25519 >/dev/null 2>&1 || { echo "SSH key invalid"; exit 1; }
|
||||
ssh-keygen -y -f ~/.ssh/id_ed25519 || { echo "SSH key invalid"; exit 1; }
|
||||
ssh-keyscan -H "$VPS_HOST" >> ~/.ssh/known_hosts 2>/dev/null
|
||||
|
||||
- name: Deploy hermyhq to VPS
|
||||
|
||||
Reference in New Issue
Block a user