Added caching action
Some checks failed
Nix Web Proxy Worker / setup-nixos-runner (push) Has been cancelled
Some checks failed
Nix Web Proxy Worker / setup-nixos-runner (push) Has been cancelled
This commit is contained in:
@@ -11,6 +11,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.WEB_PROXY_SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.WEB_PROXY_SSH_PRIVATE_KEY }}
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
- run: ssh-keyscan 192.168.1.35 >> ~/.ssh/known_hosts
|
- uses: actions/cache@v4
|
||||||
- name: nixing
|
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 }}"
|
run: nix-shell shell.nix --run "nixos-rebuild switch --no-flake --target-host ${{ vars.WEB_PROXY_TARGET_HOST }}"
|
||||||
Reference in New Issue
Block a user