Skip to content

Commit 511e96f

Browse files
committed
Name the Docker images for MariaDB and MySQL so we can stop them using their name
1 parent 0a663f9 commit 511e96f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sqlx.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279
args: >
280280
--features mysql,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
281281
282-
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}
282+
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mysql_${{ matrix.mysql }} mysql_${{ matrix.mysql }}
283283
- run: sleep 60
284284

285285
- uses: actions-rs/cargo@v1
@@ -306,7 +306,7 @@ jobs:
306306

307307
- run: |
308308
docker stop mysql_${{ matrix.mysql }}
309-
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}_client_ssl
309+
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mysql_${{ matrix.mysql }}_client_ssl mysql_${{ matrix.mysql }}_client_ssl
310310
sleep 60
311311
312312
- uses: actions-rs/cargo@v1
@@ -346,7 +346,7 @@ jobs:
346346
args: >
347347
--features mysql,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
348348
349-
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}
349+
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mariadb_${{ matrix.mariadb }} mariadb_${{ matrix.mariadb }}
350350
- run: sleep 30
351351

352352
- uses: actions-rs/cargo@v1
@@ -362,7 +362,7 @@ jobs:
362362

363363
- run: |
364364
docker stop mariadb_${{ matrix.mariadb }}
365-
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}_client_ssl
365+
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mariadb_${{ matrix.mariadb }}_client_ssl mariadb_${{ matrix.mariadb }}_client_ssl
366366
sleep 60
367367
368368
- uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)