Skip to content

Commit

Permalink
chore: refacto multiple steps
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed May 11, 2024
1 parent 7d84ed7 commit 627e827
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/portal-loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,34 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- run: |
- name: Setup the images
run: |
cd misc/loop
docker compose build
docker compose pull
docker compose up -d
while [[ "$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height')" -gt 10 ]]; do sleep 1; done
- name: Test1. Portal loop start gnoland
run: |
while
block_height=$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height')
[[ "$block_height" -lt 10 ]]
do
sleep 1
done
curl -s localhost:26657/status | jq
cd ../..
- name: Buid new gnolang/gno image
run: |
docker ps -a
docker build -t ghcr.io/gnolang/gno .
- name: Test2. Wait portalloop start new image
run: |
while
block_height=$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height')
[[ "$block_height" -lt 10 && "$block_height" -gt 5 ]]
do
sleep 1
Expand Down

0 comments on commit 627e827

Please sign in to comment.