I've developer version of my symfony 4 application on google app engine (flexible). My code is on github than I make cloud build where I run my tests and build/deploy my application to app engine. Because it's a developer version it will be nice to make automatic database migrations. I've searched but I can't find any solutions/docs how achieve such automation.
I try to make additional build step with bin/console doctrine:migrations:migrate
in my build process but it can't access database through unix_socket=/cloudsql/
(method recommended in app engine). I don't want connect through public ip but I wonder if it's even possible to connect by unix socket?
I also wonder if migration step should be run after or before app deploy?
Or maybe there is no need to run this step individually and I can run migrations after deploy on my app engine instances?