Skip to content

Commit

Permalink
Fix mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakomski committed Oct 14, 2024
1 parent 2cc2f00 commit c3df029
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c3df029

Please sign in to comment.