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