diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index a047b2a..f52d73d 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -279,6 +279,23 @@ jobs: apply_update + # ============================================================== + # Tent update + # ============================================================== + + curl -s https://forgejo.sny.sh/sun/Tent/raw/branch/main/instances.json | \ + jq '[ + .[] | + select(.type == "http") | + .url] | + sort' > tent-tmp.json + + jq --slurpfile tent tent-tmp.json \ + '(.[] | select(.type == "tent") ) + .instances |= $tent[0]' services-full.json > services-tmp.json + + apply_update + # ============================================================== # TODO: Update instances for other services # ============================================================== diff --git a/services-full.json b/services-full.json index 0f048df..fd2f115 100644 --- a/services-full.json +++ b/services-full.json @@ -632,5 +632,15 @@ "https://search.zeroish.xyz", "https://search2.ahwx.org" ] + }, + { + "type": "tent", + "test_url": "/search.php?query=<%=query%>", + "fallback": "https://tent.sny.sh", + "instances": [ + "https://tent.bloat.cat", + "https://tent.sny.sh", + "https://tn.vern.cc" + ] } ] diff --git a/services.json b/services.json index 17a76ec..b73c998 100644 --- a/services.json +++ b/services.json @@ -585,5 +585,15 @@ "https://search.zeroish.xyz", "https://search2.ahwx.org" ] + }, + { + "type": "tent", + "test_url": "/search.php?query=<%=query%>", + "fallback": "https://tent.sny.sh", + "instances": [ + "https://tent.bloat.cat", + "https://tent.sny.sh", + "https://tn.vern.cc" + ] } ]