From 7ea74d5c72c434626bd06ad31c1aac613409eb40 Mon Sep 17 00:00:00 2001 From: nemanjam Date: Fri, 7 Jun 2024 17:30:13 +0200 Subject: [PATCH] add to known hosts --- .github/workflows/deploy-nginx-bash.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-nginx-bash.yml b/.github/workflows/deploy-nginx-bash.yml index 74b03c8..68f66f1 100644 --- a/.github/workflows/deploy-nginx-bash.yml +++ b/.github/workflows/deploy-nginx-bash.yml @@ -56,5 +56,8 @@ jobs: echo " Port ${{ secrets.REMOTE_PORT }}" >> ~/.ssh/config chmod 600 ~/.ssh/config + - name: Add SSH server key to known_hosts + run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts + - name: Run bash file with yarn run: yarn deploy:nginx