[CI] Forgejo Actions based release process (squash) MySQL optimization
Refs: https://codeberg.org/forgejo/forgejo/issues/976 (cherry picked from commit b4b8c489e6e9fe36349eced5d4249467b25df2a7) Backport of https://codeberg.org/forgejo/forgejo/pulls/994 (cherry picked from commit 7f2b08d0ad3835b59e325818e3bcc4a49f70ba9e) (cherry picked from commit bf025db3409249a4c4231431372a243119530829)
This commit is contained in:
parent
574e6e205b
commit
49f68518c2
1 changed files with 5 additions and 1 deletions
|
@ -62,12 +62,16 @@ jobs:
|
||||||
image: codeberg.org/forgejo/test_env:main
|
image: codeberg.org/forgejo/test_env:main
|
||||||
services:
|
services:
|
||||||
mysql8:
|
mysql8:
|
||||||
image: mysql:8
|
image: mysql:8-debian
|
||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: testgitea
|
MYSQL_DATABASE: testgitea
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
|
#
|
||||||
|
# See also https://codeberg.org/forgejo/forgejo/issues/976
|
||||||
|
#
|
||||||
|
cmd: ['mysqld', '--innodb-adaptive-flushing=OFF', '--innodb-buffer-pool-size=4G', '--innodb-log-buffer-size=128M', '--innodb-flush-log-at-trx-commit=0', '--innodb-flush-log-at-timeout=30', '--innodb-flush-method=nosync', '--innodb-fsync-threshold=1000000000']
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- uses: https://code.forgejo.org/actions/setup-go@v4
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
||||||
|
|
Loading…
Reference in a new issue