From e85ccb4f5089bdbe2de9145d148c2c0b8a236e12 Mon Sep 17 00:00:00 2001 From: henrik Date: Fri, 3 Oct 2025 20:54:08 +0200 Subject: [PATCH] Added caching action --- .gitea/workflows/web-deploy.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/web-deploy.yaml b/.gitea/workflows/web-deploy.yaml index 2a46d6e..81c8594 100644 --- a/.gitea/workflows/web-deploy.yaml +++ b/.gitea/workflows/web-deploy.yaml @@ -11,6 +11,10 @@ jobs: with: ssh-private-key: ${{ secrets.WEB_PROXY_SSH_PRIVATE_KEY }} - uses: cachix/install-nix-action@v31 - - run: ssh-keyscan 192.168.1.35 >> ~/.ssh/known_hosts - - name: nixing + - uses: actions/cache@v4 + with: + path: /nix/store + - name: Ensure known host name + run: ssh-keyscan ${{ vars.WEB_PROXY_IP }} >> ~/.ssh/known_hosts + - name: Apply Nix build to Web Proxy host run: nix-shell shell.nix --run "nixos-rebuild switch --no-flake --target-host ${{ vars.WEB_PROXY_TARGET_HOST }}" \ No newline at end of file