From c3df029611eead7d87bb90133417d81c141ce112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20=C5=81akomski?= Date: Mon, 14 Oct 2024 16:42:10 +0200 Subject: [PATCH] Fix mysql service --- .github/workflows/continous-integration.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml index b06bdfb..dcde5eb 100644 --- a/.github/workflows/continous-integration.yml +++ b/.github/workflows/continous-integration.yml @@ -70,14 +70,18 @@ jobs: - "5432:5432" mysql: - image: "mysql:8.0" + image: "bitnami/mysql:8.0" + + env: + ALLOW_EMPTY_PASSWORD: yes + MYSQL_DATABASE: dqo + MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password - # https://stackoverflow.com/questions/60902904/how-to-pass-mysql-native-password-to-mysql-service-in-github-actions options: >- - --health-cmd "mysqladmin ping --silent" - -e MYSQL_ALLOW_EMPTY_PASSWORD=yes - -e MYSQL_DATABASE=dqo - --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" + --health-cmd="mysqladmin ping" + --health-interval=10s + --health-timeout=5s + --health-retries=3 ports: - "3306:3306"