~aasg/sourcehut-ipns-webhook

Sourcehut webhook handler that updates IPNS records

114acb2 Write something in the HTTP response

4 months ago

cace017 Perform IPNS update asynchronously

4 months ago

#sourcehut-ipns-webhook

built with nix

This is a simple HTTP server designed to receive job statuses from builds.sr.ht (via the webhook build trigger) and update IPNS records to point at a CID produced by the build.

The IPNS record to update is given by the path the job status is submitted to, and must be known to the IPFS daemon the server is connected to. For example, configuring the webhook URL on a build to https://build-hook.myserver.example/myserver.example will use the key aliased to myserver.example (as shown in the output of ipfs key list).

The CID to which the IPNS record is updated is read from a build artifact named cid.