Create a BDD in a job and use it in another


We are trying to use GitLab CI at my company. We use to create a database with a dataset inserted in a server and launch tests on this instance every night.

Now we want to use CI. So to be able to launch test, we have to create a database before. My question is : “How to do that with GitLab CI?

Can I create a base in a job and use it in another? With a docker image? I cannot find out to do that. Any help is welcome.