about summary refs log tree commit diff homepage
path: root/.builds/auto.yml
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 22:09:36 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 22:14:05 +0700
commite7bbdf42812fbbd5af646f69e5f220b9b04966ba (patch)
tree8552ef44ef6a457ee5fb2227928c3c3698e17366 /.builds/auto.yml
parent9fd639eff5e47e8e15776f1974f0fcb9337b12f6 (diff)
downloadsite-e7bbdf42812fbbd5af646f69e5f220b9b04966ba.tar.gz
Migrate to now fediring format
Diffstat (limited to '.builds/auto.yml')
-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