mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 23:21:27 -07:00
Fix server_id in GHA
GHA lack a way to pass option to docker's command. Also server_id is not read as a environment variable. So I'm forced to use a config file.
This commit is contained in:
parent
9e3010dd00
commit
2af8e4f273
4 changed files with 18 additions and 8 deletions
10
Makefile
10
Makefile
|
@ -17,8 +17,9 @@ test-integration:
|
|||
--network podman \
|
||||
--publish 3308:3306 \
|
||||
--health-cmd 'mysqladmin ping -P 3306 -pmsandbox | grep alive || exit 1' \
|
||||
mysql:8.0.22 \
|
||||
--server_id 2
|
||||
--security-opt label=disable \
|
||||
--volume ./tests/integration/targets/setup_mysql/replica1/:/etc/mysql/conf.d/ \
|
||||
mysql:8.0.22
|
||||
podman run \
|
||||
--detach \
|
||||
--name replica2 \
|
||||
|
@ -27,8 +28,9 @@ test-integration:
|
|||
--network podman \
|
||||
--publish 3309:3306 \
|
||||
--health-cmd 'mysqladmin ping -P 3306 -pmsandbox | grep alive || exit 1' \
|
||||
mysql:8.0.22 \
|
||||
--server_id 3
|
||||
--security-opt label=disable \
|
||||
--volume ./tests/integration/targets/setup_mysql/replica2/:/etc/mysql/conf.d/ \
|
||||
mysql:8.0.22
|
||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
-set -x; ansible-test integration -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python 3.8; set +x
|
||||
podman stop --time 0 --ignore primary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue