ci: start over wirh builtin mysql]
Signed-off-by: Agnes Lin <agneslin.lin@ibm.com>
This commit is contained in:
parent
f1f42008ef
commit
d43d2c0900
|
@ -17,7 +17,7 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7.22
|
||||||
env:
|
env:
|
||||||
MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
MYSQL_PASSWORD: pass
|
MYSQL_PASSWORD: pass
|
||||||
|
@ -47,14 +47,15 @@ jobs:
|
||||||
# mysql version: 5.7
|
# mysql version: 5.7
|
||||||
# mysql database: testdb
|
# mysql database: testdb
|
||||||
# mysql root password: root
|
# mysql root password: root
|
||||||
# mysql user: user # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
|
# mysql user: user
|
||||||
# mysql password: pass
|
# mysql password: pass
|
||||||
- name: Wait for MySQL
|
- name: Wait for MySQL
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl start mysql
|
sudo systemctl start mysql
|
||||||
while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do
|
sleep 20
|
||||||
sleep 1
|
# while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do
|
||||||
done
|
# sleep 1
|
||||||
|
# done
|
||||||
# sudo apt-get update
|
# sudo apt-get update
|
||||||
# sudo apt-get install -y mysql-client
|
# sudo apt-get install -y mysql-client
|
||||||
# docker ps -a
|
# docker ps -a
|
||||||
|
|
Loading…
Reference in New Issue