Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you use Git to deploy things? Sorry if it's a dumb question, I'm unfamiliar with Ansible.


A 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: