3 ms·
What are some fun/creative ways to do GitHub/GitLab style CI/CD with this method? Some kind of entry point script on push that determines what to do next? How
by candiddevmike 1y ago
What are some fun/creative ways to do GitHub/GitLab style CI/CD with this method? Some kind of entry point script on push that determines what to do next? How could you decide some kind of variables like what the push was for?
- deleted 1y ago[deleted]
- yule 1y agoI wrote about that idea here: https://www.stchris.net/tiny-ci-system.html https://www.stchris.net/tiny-ci-system.html
- skydhash 1y ago`man 5 githooks` is your friend. Hooks are just scripts and they can receive parameters. `post-receive` is most likely what you would want.
- CGamesPlay 1y agoCheck the docs for the post-receive hook, it does give everything you need. I don't know what you have in mind by "GitHub/Gitlab style", but it's just a shell script, and you can add in as much yaml as you want to feel good about it. I did a quick search for "post-receive hook ci" and found this one: https://gist.github.com/nonbeing/f3441c96d8577a734fa240039b7113db https://gist.github.com/nonbeing/f3441c96d8577a734fa240039b7...