Hi,
to improve the performance of our gitlab runner we want to make sure the mysql database gets cached.
We have added mysql as a service to our job but despite reading all the documentation and googling haven’t found a way to make the mysql database persistent across runs. Our app has to execute all migrations before it can run it’s test, these migrations sadly take over 15 minutes.
This is how we added the mysql service:
#...
test:
stage: test
services:
- mysql:latest
#...
Is there any way we can cache the mysql database so it can be reused the next time we run the job?