I am looking for some good tutorial on how to make use of git hooks for pulling, building and deployment of code from a bitbucket ( or GitHub) repositories. Please mention any good source.
Well both github and bitbucket use forms of webhooks, see github’s docs about it at:
While not being specific to Elixir deployment, there is a big movement, to bring this Heroku style of deployment to generic infrastructure. Watch out for the concept of “gitops”.
If you deploy your Elixir app to Kubernetes I could recommend https://gitkube.sh/ . Eventually you could use it as an example on how to use git hooks and adapt it to your environment.