Keep first URL from rpc endpoints in network JSON
This commit is contained in:
parent
f5b7a96145
commit
45cf566c30
@ -1,8 +1,8 @@
|
||||
{
|
||||
"chainId": "laconic-mainnet",
|
||||
"chainName": "Laconicd",
|
||||
"rpc": "http://localhost:26657",
|
||||
"rest": "https://localhost:1317",
|
||||
"rpc": "",
|
||||
"rest": "",
|
||||
"bip44": {
|
||||
"coinType": 118
|
||||
},
|
||||
|
||||
@ -64,8 +64,13 @@
|
||||
|
||||
- name: Update network.json with environment endpoints
|
||||
shell: |
|
||||
jq --arg rpc "$NEXT_PUBLIC_NODE_ADDRESSES" --arg rest "$NODE_REST_ENDPOINT" \
|
||||
RPC_VALUE=$(echo '{{ next_public_node_addresses }}' | jq -r '.[0]')
|
||||
echo "Using RPC value: $RPC_VALUE"
|
||||
|
||||
jq --arg rpc "$RPC_VALUE" --arg rest "{{ node_rest_endpoint }}" \
|
||||
'.rpc = $rpc | .rest = $rest' "{{ lookup('env', 'NETWORK_JSON_PATH') }}" > "{{ temp_network_json }}"
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Copy modified network JSON to deployment config directory
|
||||
copy:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user