7 ms·
How do you use Git to deploy things? Sorry if it's a dumb question, I'm unfamiliar with Ansible.
by htamas 3y ago
How do you use Git to deploy things? Sorry if it's a dumb question, I'm unfamiliar with Ansible.
- nickjj 3y agoA git post receive hook. You can set up a bare git repo which lets you push code to it. Then when you push to it, the post receive hook runs which can be any script you want. In this case you can run the commands to restart your containers or whatever else you need to do.