Files
nix-infrastructure/.gitea/workflows/web-deploy.yaml
henrik 22293a24a1
All checks were successful
Nix Web Proxy Worker / setup-nixos-runner (push) Successful in 8m26s
Corrected wrong version of ssh
2025-12-23 01:38:17 +01:00

38 lines
1.0 KiB
YAML

name: Nix Web Proxy Worker
run-name: Web Proxy - Nix
on: [push, merge]
jobs:
setup-nixos-runner:
run-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.WEB_PROXY_SSH_PRIVATE_KEY }}
- name: Ensure known host name
run: ssh-keyscan ${{ vars.WEB_PROXY_IP }} >> ~/.ssh/known_hosts
- name: Restore cached Nix Store
id: cached-nix-store
uses: actions/cache/restore@v3
with:
path: |
/nix
key: ${{ runner.os }}-nix-infrastructure
- uses: cachix/install-nix-action@v31
- 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 }}"
- name: Save Primes
id: cache-primes-save
uses: actions/cache/save@v3
with:
path: |
/nix
key: ${{ runner.os }}-nix-infrastructure