From 7d5ef35939cdca8814ee6508d09a41d03505d7f8 Mon Sep 17 00:00:00 2001 From: Erland A Syafiq Date: Sat, 1 Jun 2024 23:21:48 -0400 Subject: [PATCH] Added set known hosts --- .github/workflows/vtmunc-runner.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vtmunc-runner.yml b/.github/workflows/vtmunc-runner.yml index 79a7f7b..a7b0193 100644 --- a/.github/workflows/vtmunc-runner.yml +++ b/.github/workflows/vtmunc-runner.yml @@ -27,7 +27,7 @@ jobs: - name: Adding contents of ssh key run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - name: Adding known hosts - run: ssh-keyscan -H vtmunc.org > ~/.ssh/known_hosts + run: echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts - name: SSH into EC2 instance run: ssh -i ~/.ssh/id_rsa webapp@vtmunc.org - name: Pull image from docker hub