From ef22fd9b8333a115599952cf32d3bf5f19275402 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 5 Sep 2024 21:28:34 -0700 Subject: [PATCH] setup known_hosts for ssh-keyscan --- .gitea/workflows/build-and-deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 461dbdd..bd9da0c 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -17,6 +17,8 @@ jobs: uses: actions/checkout@v4 - name: Build website content run: hugo + - name: Setup the hostname with the private key that we have + run: mkdir -p ~/.ssh/ && ssh-keyscan git.shockrah.xyz >> ~/.ssh/known_hosts - name: Setup SSH to copy files up to remote webserver uses: webfactory/ssh-agent@v0.9.0 with: