Wait for database availability in workflows.#2511
Wait for database availability in workflows.#2511ratkosrb merged 1 commit intovmangos:developmentfrom
Conversation
|
I've just had the issue occur in a workflow run in my fork so it seems like this isn't a fix after all (at least not a fully correct one). I'll look into alternative methods; I think inspecting the container health might be a viable (and more appropriate) solution. |
|
If we are embracing github actions fully then the usual approach is via container healthchecks while also using service/auxiliary containers, see https://docs.github.com/en/actions/using-containerized-services/about-service-containers#creating-service-containers Here's a postgress example we can steal and tweak https://docs.github.com/en/actions/using-containerized-services/creating-postgresql-service-containers#running-jobs-in-containers mysql healthcheck example: docker-library/mysql#930 (comment) |
🍰 Pullrequest
This ensures that the MySQL database is available during the GitHub workflows before trying to access it. This (hopefully) prevents failing workflows like this one.
Proof
Issues
How2Test
Todo / Checklist