about summary refs log tree commit diff homepage
path: root/.builds
diff options
context:
space:
mode:
Diffstat (limited to '.builds')
-rw-r--r--.builds/auto.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.builds/auto.yml b/.builds/auto.yml
index 34756e1..e0ac326 100644
--- a/.builds/auto.yml
+++ b/.builds/auto.yml
@@ -1,18 +1,17 @@
 image: nixos/unstable
 oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW
 packages:
-  - nixos.jq
   - nixos.openring
   - nixos.python3
 sources:
+  - https://git.sr.ht/~amolith/fediring.net
   - https://git.sr.ht/~cnx/site
 environment:
   NODE: node
 tasks:
   - inject: |
-      curl https://fediring.net/ring.json |
-        jq -r 'map(.host)|until(.[0]=="cnx.srht.site";.[1:]+.[:1])|.[-1,1]'\
-        > site/_libs/fediring
+      grep -C1 cnx.srht.site fediring.net/webring.txt |
+        awk 'NR % 2 { print $2 }' > site/_libs/fediring
       openring -n 4 -l 192 -S site/_libs/openring/sources\
         < site/_libs/openring/in.html > site/_libs/openring/out.html
       acurl https://lists.sr.ht/query/list/5261.mbox -o site/_libs/formbox/mbox