File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- # MySQL GitHub Action [ ![ Test status] ( https://github.com/mirromutth/mysql-action/workflows/test/badge.svg )] ( https://github.com/mirromutth /mysql-action/actions )
1
+ # MySQL GitHub Action [ ![ Test status] ( https://github.com/mirromutth/mysql-action/workflows/test/badge.svg )] ( https://github.com/stronk7 /mysql-action/actions )
2
2
3
3
This [ GitHub Action] ( https://github.com/features/actions ) sets up a MySQL database in Docker.
4
4
@@ -23,6 +23,10 @@ steps:
23
23
mysql password : ${{ secrets.DatabasePassword }} # Required if "mysql user" exists. The password for the "mysql user"
24
24
use tmpfs : true # Optional, default value is false. Mounts /var/lib/mysql to tmpfs (i.e. in RAM) for increased performance
25
25
tmpfs size : ' 2048M' # Optional, default value is '1024M'. Desired size of above-mentioned tmpfs volume
26
+ extra conf : | # Optional, default is ''. Other configuration options to be added on startup.
27
+ --max_allowed_packet=16MB
28
+ --skip-log-bin
29
+ ...
26
30
` ` `
27
31
28
32
If want bind MySQL host port to 3306, please see [The Default MySQL](#the-default-mysql).
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ inputs:
49
49
description : " Desired size of tmpfs volume"
50
50
required : false
51
51
default : " 1024M"
52
+ extra conf :
53
+ description : " Other configuration options, to be added to the startup (--max_allowed_packet=16MB --skip-log-bin ...)"
54
+ required : false
55
+ default : ' '
52
56
runs :
53
57
using : ' docker'
54
58
image : ' Dockerfile'
Original file line number Diff line number Diff line change 33
33
docker_run=" $docker_run -d -p $INPUT_HOST_PORT :$INPUT_CONTAINER_PORT mysql:$INPUT_MYSQL_VERSION --port=$INPUT_CONTAINER_PORT "
34
34
docker_run=" $docker_run --character-set-server=$INPUT_CHARACTER_SET_SERVER --collation-server=$INPUT_COLLATION_SERVER "
35
35
36
+ if [ -n " $INPUT_EXTRA_CONF " ]; then
37
+ echo " Other startup extra configuration: $INPUT_EXTRA_CONF "
38
+
39
+ docker_run=" $docker_run $INPUT_EXTRA_CONF "
40
+
36
41
sh -c " $docker_run "
You can’t perform that action at this time.
0 commit comments