Skip to content

Commit

Permalink
add restart CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 5, 2024
1 parent 51405c6 commit 0f4165a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,23 @@ jobs:
- name: Dump logs
if: always()
run: docker logs zetacored
- name: Ensure we can restart
run: |
docker stop zetacored
docker start zetacored
- name: Wait for healthy
run: |
while ! curl -s -f --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' -H 'Content-Type: application/json' http://localhost:8545; do
if ! docker ps | grep zetacored; then
echo "Container stopped?"
exit 1
fi
df -h /
echo "waiting for zetacored health"
sleep 15
done
- name: Dump logs (restart)
if: always()
run: docker logs --since 1m zetacored


0 comments on commit 0f4165a

Please sign in to comment.