[deploy]
This commit is contained in:
@@ -13,9 +13,6 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install SSH client
|
||||
run: apk add --no-cache openssh-client rsync
|
||||
|
||||
- name: Setup SSH
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
@@ -26,6 +23,13 @@ jobs:
|
||||
ssh-keyscan -p 22 "rchou.net" >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
- name: Debug key + ssh
|
||||
run: |
|
||||
ssh -V
|
||||
ls -la ~/.ssh
|
||||
head -5 ~/.ssh/id_ed25519
|
||||
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no deploy@rchou.net "echo ok"
|
||||
|
||||
- name: Test SSH
|
||||
run: ssh -i ~/.ssh/id_ed25519 deploy@rchou.net "echo 'SSH works!'"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user