Node-RED as CI/CD (barely)

So, I might've gotten slightly too bored yesterday and went on making whatever this ended up being. And considering I barely did anything other than toggling some lights with Node-RED until today, I totally expect this to break all sorts of best practices and the proper ways of doing stuff.

I call it "CI" but in reality it just executes a script on a POST request. None of the "CI-ness" of any other competent solution (reporting errors for example) exists.

Also contains a whole lot of possibly hardcoded junk, which I'd love to find a way to separate properly (you got me, I am asking for code (?) review)

Also here are some pictures of the nodes in case you like the look of spaghetti


1 Like