From 13325e4339667ea99a48868f7f0f7c766bdd1b9e Mon Sep 17 00:00:00 2001 From: theoleuthardt Date: Sun, 23 Feb 2025 00:57:16 +0100 Subject: [PATCH] fix: connect to server with ssh key instead of password (safety first) --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a18a32e..24a4658 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -68,7 +68,8 @@ jobs: with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} - password: ${{ secrets.SSH_PASSWORD }} + key: ${{ secrets.SSH_KEY }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} port: ${{ secrets.PORT }} script: | cd "${{ secrets.HOMELAB_PATH }}"