From e00a530236a61d51bd06f4ecd221f6b2e9594684 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 9 May 2024 10:02:40 +0200 Subject: [PATCH] add key to known hosts --- .gitea/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7e6d29a..a42c392 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -31,9 +31,11 @@ jobs: shell: bash run: | echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts" - name: git lfs pull shell: bash run: | + ssh-keyscan ${{ env.ENDPOINT }} >> ~/.ssh/known_hosts git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}.git git lfs pull