3 ms·
Write a script which runs remotely over SSH and trigger on the appropriate event in your CI/CD host.
by zomglings 6y ago
Write a script which runs remotely over SSH and trigger on the appropriate event in your CI/CD host.
- nmyk 6y agoThis is what I like to do. In my case, even the CI/CD host is just a systemd service I wrote. The service just runs a script that uses netcat to listen on a special port that I also configured GitHub to send webhooks to, and processes the hook/deploys if appropriate. Then when it's done, systemd restarts the script (it is set to always restart) and we're locked and loaded again. It's about 15 lines of shell script in total.
- zomglings 6y agoThat's quite elegant.