Skip to content

Commit

Permalink
Trigger g2.testnets for force debug node
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Aug 26, 2024
1 parent fbc1204 commit f38f60f
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/trigger-tracing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,32 @@ jobs:
NETWORK='${{ github.event.inputs.network }}'
EFFECT_FILE=''
if [[ "${NETWORK}" == "koi" ]]; then
EFFECT_FILE=playbooks/koi_nodes/host_vars/g3.testnets
jq -n \
--arg file playbooks/darwinia_nodes/host_vars/g2.testnets \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
jq -n \
--arg file playbooks/darwinia_nodes/host_vars/g3.testnets \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
fi
if [[ "${NETWORK}" == "crab" ]]; then
EFFECT_FILE=playbooks/crab_nodes/host_vars/c1.crab2
jq -n \
--arg file playbooks/darwinia_nodes/host_vars/c1.crab2 \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
fi
if [[ "${NETWORK}" == "darwinia" ]]; then
EFFECT_FILE=playbooks/darwinia_nodes/host_vars/c1.darwinia2
jq -n \
--arg file playbooks/darwinia_nodes/host_vars/c1.darwinia2 \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
fi
jq -n \
--arg file ${EFFECT_FILE} \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
MULTI_CHANGES=$(jq -crs '.' < /tmp/changes.json)
Expand Down

0 comments on commit f38f60f

Please sign in to comment.