From a6d1144bff656d4abe9514248e370cae153faefb Mon Sep 17 00:00:00 2001 From: rchou Date: Tue, 19 Aug 2025 23:11:04 +0800 Subject: [PATCH] [deploy] --- .gitea/workflows/pipeline.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 47d29f8..1e163fd 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -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!'"