Skip to content

Commit 03a7f50

Browse files
committed
use tmpfs for mysql
1 parent 13eb66a commit 03a7f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/pull-db-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,15 @@ jobs:
154154
runs-on: ubuntu-latest
155155
services:
156156
mysql:
157+
# the bitnami mysql image has more options than the official one, it's easier to customize
157158
image: bitnami/mysql:8.0
158159
env:
159160
ALLOW_EMPTY_PASSWORD: true
160161
MYSQL_DATABASE: testgitea
161162
ports:
162163
- "3306:3306"
164+
options: >-
165+
--mount type=tmpfs,destination=/bitnami/mysql/data
163166
elasticsearch:
164167
image: elasticsearch:7.5.0
165168
env:

0 commit comments

Comments
 (0)