I'm trying to understand the best approach to migrate my database automatically to the sever when I push my code
Im using github actions on a self hosted sever to build the nestjs dockerfile with docker compose along with a postgres image.
I'm now confused/failed at which step should i run the migration? At the build level? At the container running level? Or do it outside inside the actions workflow? As for now I have tried to build it inside the dockerfile, I don't get any error but there's no migration happening either, anyone has any idea?