nrec-actions-runner #47

Merged
torjus merged 2 commits from nrec-actions-runner into master 2026-03-08 22:22:49 +00:00
Owner

Forgejo Actions Runner on nrec-nixos02

Changes

  • Add Forgejo Actions runner service (services/actions-runner/default.nix)

    • Podman with docker compatibility for sandboxed container execution
    • forgejo-runner connecting to https://code.t-juice.club
    • Labels: nix (nixos/nix), node-bookworm (node:lts-bookworm-slim), alpine (alpine:latest)
    • 2 concurrent jobs, unprivileged containers, caching enabled
    • Token read from /var/lib/forgejo-runner/token
  • Import actions-runner in nrec-nixos02 (hosts/nrec-nixos02/default.nix)

  • Remove old CI workflows (.github/workflows/flake-check.yaml, flake-update.yaml)

    • Will be rewritten with improvements

Post-deploy

  1. Generate runner registration token at https://code.t-juice.club/-/admin/runners
  2. Create token file on nrec-nixos02:
    sudo mkdir -p /var/lib/forgejo-runner
    echo "TOKEN=<registration-token>" | sudo tee /var/lib/forgejo-runner/token
    sudo chmod 600 /var/lib/forgejo-runner/token
    
  3. Service gitea-runner-actions1 will auto-register and start
## Forgejo Actions Runner on nrec-nixos02 ### Changes - **Add Forgejo Actions runner service** (`services/actions-runner/default.nix`) - Podman with docker compatibility for sandboxed container execution - `forgejo-runner` connecting to `https://code.t-juice.club` - Labels: `nix` (nixos/nix), `node-bookworm` (node:lts-bookworm-slim), `alpine` (alpine:latest) - 2 concurrent jobs, unprivileged containers, caching enabled - Token read from `/var/lib/forgejo-runner/token` - **Import actions-runner in nrec-nixos02** (`hosts/nrec-nixos02/default.nix`) - **Remove old CI workflows** (`.github/workflows/flake-check.yaml`, `flake-update.yaml`) - Will be rewritten with improvements ### Post-deploy 1. Generate runner registration token at `https://code.t-juice.club/-/admin/runners` 2. Create token file on nrec-nixos02: ```bash sudo mkdir -p /var/lib/forgejo-runner echo "TOKEN=<registration-token>" | sudo tee /var/lib/forgejo-runner/token sudo chmod 600 /var/lib/forgejo-runner/token ``` 3. Service `gitea-runner-actions1` will auto-register and start
torjus added 2 commits 2026-03-08 22:22:24 +00:00
Adds a container-based Forgejo Actions runner on nrec-nixos02
connecting to code.t-juice.club, using Podman for sandboxed
job execution with nix, node-bookworm, and alpine labels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removing to rewrite with improvements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
torjus merged commit c090ec9282 into master 2026-03-08 22:22:49 +00:00
torjus deleted branch nrec-actions-runner 2026-03-08 22:22:49 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: torjus/nixos-servers#47