From 8d45979b1858e412a0fa13e295d6765fcc777df6 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Fri, 2 Jan 2026 11:57:45 +0100 Subject: [PATCH] add to known hosts --- .gitea/workflows/commentDeploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/commentDeploy.yml b/.gitea/workflows/commentDeploy.yml index c0b3a8e..ec8ea02 100644 --- a/.gitea/workflows/commentDeploy.yml +++ b/.gitea/workflows/commentDeploy.yml @@ -37,6 +37,11 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_DEPLOYMENT_KEY }} + - name: Add SSH host to known hosts + run: | + mkdir -p ~/.ssh + ssh-keyscan -p ${{ vars.ssh_port }} ${{ vars.ssh_host }} >> ~/.ssh/known_hosts + - name: Create environment file run: | cat > .env << EOF