Add a script to publish records from a given directory #62

Merged
ashwin merged 20 commits from deep-stack/laconic-registry-cli:pm-endpoint-records into laconic2 2024-05-09 10:35:55 +00:00
3 changed files with 12 additions and 2 deletions
Showing only changes of commit cb4f0d6fe8 - Show all commits

View File

@ -64,6 +64,9 @@
# Get the deployment URL(s) # Get the deployment URL(s)
laconic registry record list --all --type WatcherDeploymentRecord watcher $WATCHER_RECORD_ID | jq -r '.[].attributes.url' laconic registry record list --all --type WatcherDeploymentRecord watcher $WATCHER_RECORD_ID | jq -r '.[].attributes.url'
# Expected output:
https://ajna-watcher-endpoint.example.com
``` ```
* Query for `sushiswap-v3-subgraph` deployment(s): * Query for `sushiswap-v3-subgraph` deployment(s):
@ -81,6 +84,9 @@
# Get the deployment URL(s) # Get the deployment URL(s)
laconic registry record list --all --type SubgraphDeploymentRecord subgraph $SUBGRAPH_RECORD_ID | jq -r '.[].attributes.url' laconic registry record list --all --type SubgraphDeploymentRecord subgraph $SUBGRAPH_RECORD_ID | jq -r '.[].attributes.url'
# Expected output:
# https://sushiswap-v3-subgraph-endpoint.example.com
``` ```
* Query for `geth` service deployment(s): * Query for `geth` service deployment(s):
@ -98,4 +104,8 @@
# Get the deployment URL(s) # Get the deployment URL(s)
laconic registry record list --all --type ServiceDeploymentRecord service $SERVICE_RECORD_ID | jq -r '.[].attributes.url' laconic registry record list --all --type ServiceDeploymentRecord service $SERVICE_RECORD_ID | jq -r '.[].attributes.url'
# Expected output:
# https://geth-rpc-endpoint-1.example.com
# https://geth-rpc-endpoint-2.example.com
``` ```

View File

@ -5,7 +5,7 @@
"request": "", "request": "",
"name": "geth", "name": "geth",
"service": "<service-record-id>", "service": "<service-record-id>",
"url": "https://geth-rpc-endpoint.example.com", "url": "https://geth-rpc-endpoint-2.example.com",
"needs_auth": false, "needs_auth": false,
"meta": { "meta": {
"machine_name": "gibbon", "machine_name": "gibbon",

View File

@ -5,7 +5,7 @@
"request": "", "request": "",
"name": "geth", "name": "geth",
"service": "<service-record-id>", "service": "<service-record-id>",
"url": "https://geth-rpc-endpoint.example.com", "url": "https://geth-rpc-endpoint-1.example.com",
"needs_auth": false, "needs_auth": false,
"meta": { "meta": {
"machine_name": "kindred", "machine_name": "kindred",