From 6c76b3ee1f0b3417c98cf52a6b64650901047ea3 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 1 Oct 2023 20:00:19 -0600 Subject: [PATCH] start ssh-agent --- .gitea/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 9acf67f..4c56dbe 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -4,6 +4,7 @@ on: [push] env: DEBIAN_FRONTEND: noninteractive + SSH_AUTH_SOCK: /tmp/ssh_agent.sock jobs: Example: @@ -42,9 +43,8 @@ jobs: 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 - env: - SSH_AUTH_SOCK: /tmp/ssh_agent.sock - 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