From d2becac865582558f7a1cd3fad4c3bf8b7e9ca83 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 1 Oct 2023 19:15:47 -0600 Subject: [PATCH] push to nix cache --- .gitea/workflows/test.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index fff99c9..530d064 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -19,9 +19,6 @@ jobs: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU= substituters = https://cache.nixos.org/ http://s0.koi-bebop.ts.net:5000 - - name: Install dependencies - run: nix profile install nixpkgs#nodejs-18_x - - name: Checkout the repository uses: actions/checkout@v3 @@ -32,10 +29,20 @@ jobs: run: | ls ${{ gitea.workspace }} - - run: nix run nixpkgs#cowsay -- hello + - name: Install dependencies + run: | + nix profile install nixpkgs#cowsay + nix profile install nixpkgs#curl - - run: nix profile install nixpkgs#cowsay - run: cowsay testing - - run: nix profile install nixpkgs#curl - - run: curl -I s0.koi-bebop.ts.net \ No newline at end of file + - 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-add id_ed25519 + + - 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