Skip to content

Commit

Permalink
Use docker-compose down to remove also the network
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibsG committed Aug 20, 2022
1 parent e752b74 commit 2d364c9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop postgres_${{ matrix.postgres }}
docker-compose -f tests/docker-compose.yml rm postgres_${{ matrix.postgres }}
docker-compose -f tests/docker-compose.yml down postgres_${{ matrix.postgres }}
docker-compose -f tests/docker-compose.yml run -d -p 5432:5432 --name postgres_${{ matrix.postgres }}_client_ssl postgres_${{ matrix.postgres }}_client_ssl
docker exec postgres_${{ matrix.postgres }}_client_ssl bash -c "until pg_isready; do sleep 1; done"
Expand Down Expand Up @@ -299,8 +298,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml rm mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml down mysql_${{ matrix.mysql }}
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}_client_ssl
sleep 60
Expand Down Expand Up @@ -356,8 +354,7 @@ jobs:
# client SSL authentication

- run: |
docker-compose -f tests/docker-compose.yml stop mariadb_${{ matrix.mariadb }}
docker-compose -f tests/docker-compose.yml rm mariadb_${{ matrix.mariadb }}
docker-compose -f tests/docker-compose.yml down mariadb_${{ matrix.mariadb }}
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}_client_ssl
sleep 60
Expand Down

0 comments on commit 2d364c9

Please sign in to comment.