Skip to content

Commit

Permalink
Alessandro/fix e2e docker prune network (#6375) (#6376)
Browse files Browse the repository at this point in the history
* Add network pruning due to limit of 31 networks

* Added space EOF

(cherry picked from commit 2943026)

Co-authored-by: Alessandro Lo Manto <[email protected]>
  • Loading branch information
mergify[bot] and alessandrolomanto authored Sep 12, 2023
1 parent 46bfba7 commit 421d6a9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ jobs:
# Remove containers with names starting with "hermes-relayer"
docker ps -aqf "name=hermes-relayer*" | xargs -r docker rm -f
# Get a list of all networks
NETWORKS=$(docker network ls --filter "name=osmosis-testnet" --format "{{.ID}}")
# Remove all the disconnected networks
for NETWORK in $NETWORKS; do
echo "Pruning $NETWORK..."
docker network rm $NETWORK
done
echo "Done pruning osmosis-testnet networks."
- name: Check out repository code
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -156,3 +167,14 @@ jobs:
# Remove containers with names starting with "hermes-relayer"
docker ps -aqf "name=hermes-relayer*" | xargs -r docker rm -f
# Get a list of all networks
NETWORKS=$(docker network ls --filter "name=osmosis-testnet" --format "{{.ID}}")
# Remove all the disconnected networks
for NETWORK in $NETWORKS; do
echo "Pruning $NETWORK..."
docker network rm $NETWORK
done
echo "Done pruning osmosis-testnet networks."

0 comments on commit 421d6a9

Please sign in to comment.