From c8dbdcbe6237d20126a49164e65648d7530345d7 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 1 Oct 2023 20:38:10 -0600 Subject: [PATCH] use ssh-agent gh action --- .gitea/workflows/test.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 4c56dbe..6e86ff9 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -39,12 +39,17 @@ jobs: - run: curl -I s0.koi-bebop.ts.net + # - name: Setup SSH Key + # run: | + # echo "${{ secrets.BINARY_CACHE_PUSH_SSH_KEY }}" > id_ed25519 + # chmod 600 id_ed25519 + # ssh-agent -c -a $SSH_AUTH_SOCK + # ssh-add id_ed25519 + - name: Setup SSH Key - run: | - echo "${{ secrets.BINARY_CACHE_PUSH_SSH_KEY }}" > id_ed25519 - chmod 600 id_ed25519 - ssh-agent -c -a $SSH_AUTH_SOCK - ssh-add id_ed25519 + uses: https://github.com/webfactory/ssh-agent@v0.8.0 + with: + ssh-private-key: ${{ secrets.BINARY_CACHE_PUSH_SSH_KEY }} - 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