From 11b6d09c08c417493bc263d035e96bb38beef273 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 15 Oct 2023 17:29:51 -0600 Subject: [PATCH] Add known host for ssh binary cache push --- .gitea/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 7b30ba9..46a5167 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -46,13 +46,16 @@ jobs: cat ./.test_file base64 ./.test_file - - name: Setup SSH Key + - name: Setup SSH For Pushing to Binary Cache run: | + # Set up push key with ssh-agent echo "${{ secrets.BINARY_CACHE_PUSH_SSH_KEY }}" | base64 -d > ./.id_ed25519 chmod 600 ./.id_ed25519 eval $(ssh-agent -a $SSH_AUTH_SOCK) - md5sum ./.id_ed25519 ssh-add ./.id_ed25519 + # Add Binary Cache as known host + mkdir -p ~/.ssh + echo "s0.koi-bebop.ts.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAwiXcUFtAvZCayhu4+AIcF+Ktrdgv9ee/mXSIhJbp4q" | tee -a ~/.ssh/known_hosts - name: Copy all built derivations to remote cache run: nix copy --to ssh://cache-push@s0.koi-bebop.ts.net /nix/store/* \ No newline at end of file