Closed MarekZhang closed 3 years ago
Have you considered using this instead? https://github.com/marketplace/actions/gigalixir-action
If you do continue to roll it yourself, running migrations requires that you wait until the deployment is successful. This means polling gigalixir ps to see when the new replica is healthy.
Thanks, Jesse, I will compare these two solutions.
My team uses Github action to build a auto-deployment pipeline. Part of the commands are as follows:
It seems that Gigalixir needs some reaction time for pushing new files to the server. So there are chances that the
gigalixir ps:migrate -a ${{ secrets.APP_NAME }}
command would be run before the newly added migration files being deployed on the server. As shown in the image, this deployment contains a newly added migration file, but the server says migrations already upDo we have any solution to this? if I operated in the wrong way, please correct me.
Thanks