Skip to content

Commit 04cb8eb

Browse files
committed
Name the Docker images for MariaDB and MySQL so we can stop them using their name
1 parent f205532 commit 04cb8eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sqlx.yml

Lines changed: 4 additions & 4 deletions
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
@@ -308,7 +308,7 @@ jobs:
308308

309309
- run: |
310310
docker stop mysql_${{ matrix.mysql }}
311-
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mysql_${{ matrix.mysql }}_client_ssl
311+
docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mysql_${{ matrix.mysql }}_client_ssl mysql_${{ matrix.mysql }}_client_ssl
312312
sleep 60
313313
314314
- uses: actions-rs/cargo@v1
@@ -349,7 +349,7 @@ jobs:
349349
args: >
350350
--features mysql,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
351351
352-
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 mariadb_${{ matrix.mariadb }}
352+
- run: docker-compose -f tests/docker-compose.yml run -d -p 3306:3306 --name mariadb_${{ matrix.mariadb }} mariadb_${{ matrix.mariadb }}
353353
- run: sleep 30
354354

355355
- uses: actions-rs/cargo@v1
@@ -366,7 +366,7 @@ jobs:
366366

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

0 commit comments

Comments
 (0)