Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

muelle

Pull-based CI/CD for static sites on a NixOS host.

GitHub Actions builds the site and uploads it as a workflow artifact. The muelle composite action sends an HMAC-signed request to the host; the host fetches the artifact, verifies it and flips a symlink. CI never gets shell access and never applies NixOS configuration: the NixOS module is the only authority on which sites, environments and paths exist.

Status: prototype. Static sites only.

sequenceDiagram
    participant CI as GitHub Actions
    participant W as webhook (host)
    participant R as muelle-receive
    participant K as muelle-worker
    CI->>CI: build, upload-artifact
    CI->>W: POST /hooks/#lt;site#gt; (HMAC-signed)
    W->>W: check HMAC
    W->>R: payload
    R->>R: validate against the Nix site table, spool
    R-->>K: detach worker
    R-->>CI: {id, url} (through webhook)
    K->>K: download artifact (GITHUB_TOKEN), check sha256
    K->>K: extract, flip current, prune
    loop until success or failure
        CI->>W: GET /status/#lt;id#gt;
        W-->>CI: status file
    end
    CI->>CI: set GitHub Deployment state

Where to start

Not yet

  • Uploading the artifact in the request body (fallback when the token cannot fetch it).
  • Node/JVM apps, WordPress.
  • Marking GitHub deployments inactive on teardown.