GitHub Actions - how to connect to an external MySql database

Viewed 23

I'm building an application in Python and using GitHub Actions to automate the testing 'on push'. However, I now want to connect my app to an existing MySql database. From searching the Marketplace, Google and YouTube, I can see the following options:

  1. use the MySql supplied with the GitHub Actions' Ubuntu virtual environment
  2. setup a new MySql dB inside the GitHub Actions VM.
  3. Setup MySql inside a Docker container and connect to it from another Docker container containing my app. What I can't see is how to connect out of the GitHub Actions VM to an existing database on my network. Is it possible and should I expect to see a pre-built action to do this in the Marketplace. Sorry for such an obtuse question: old, out-of-date programmer new to both CI/CD and containerisation. Thank you.
0 Answers
Related