Skip to content

Commit f114be4

Browse files
committed
Mount config file into mysql container
1 parent db2ac65 commit f114be4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
MYSQL_DATABASE: mysqlreplication_test
1818
ports:
1919
- 3306/tcp
20-
options: --log_bin=binlog --server-id=1 --binlog_rows_query_log_events=ON
21-
20+
options: >
21+
--mount type=bind,source=${{ github.workspace }}/my.cnf,target=/etc/mysql/conf.d/my.cnf
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v2

my.cnf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mysqld]
2+
server-id=1
3+
binlog_format=row
4+
log_bin=ON
5+
binlog_rows_query_log_events=ON

0 commit comments

Comments
 (0)