mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
adding debug steps
This commit is contained in:
parent
af48265d46
commit
2e44218091
1 changed files with 18 additions and 4 deletions
22
.github/workflows/deploy-devnet.yml
vendored
22
.github/workflows/deploy-devnet.yml
vendored
|
|
@ -36,12 +36,26 @@ jobs:
|
|||
$BASE_IMAGE \
|
||||
--dev --http --http.api eth,net,web3,personal
|
||||
|
||||
# Wait until the devnet RPC is ready
|
||||
until curl -s http://localhost:8545 > /dev/null; do
|
||||
echo "Waiting for Geth RPC..."
|
||||
- name: Wait for Geth RPC to become available
|
||||
run: |
|
||||
echo "Waiting for Geth RPC to be ready..."
|
||||
for i in {1..30}; do
|
||||
if curl -s http://localhost:8545 > /dev/null; then
|
||||
echo "Geth RPC is up!"
|
||||
break
|
||||
fi
|
||||
echo "Attempt $i: Not yet ready..."
|
||||
sleep 2
|
||||
done
|
||||
echo "Geth RPC is up, proceeding with deployment"
|
||||
|
||||
if ! curl -s http://localhost:8545 > /dev/null; then
|
||||
echo "❌ Geth RPC did not start within 60 seconds."
|
||||
echo "--- Container logs ---"
|
||||
docker logs $CONTAINER_NAME
|
||||
echo "--- Container status ---"
|
||||
docker ps -a
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
|
|
|||
Loading…
Reference in a new issue