konklone / oversight.garden

Bringing together the oversight community's work.
https://oversight.garden
Creative Commons Zero v1.0 Universal
26 stars 9 forks source link

Deploy scrapers from Slack #152

Closed divergentdave closed 7 years ago

divergentdave commented 7 years ago

I'm thinking of setting up an "outgoing webhook" to allow deploying the scrapers from Slack. The outgoing webhook will be received by a Node script running on the scraper instance, (managed by forever) with a URL like https://scraper.oversight.garden:4443/. The script, running as a normal user, will validate the POST data from Slack, and then shell out to git pull in the inspectors-general directory.

divergentdave commented 7 years ago

Resources: https://api.slack.com/outgoing-webhooks https://oversight.slack.com/services/B2EFN1PGF

My motivation for this is that looking up the EC2 instance address and SSHing into it is tedious, plus I only keep the relevant keys on my desktop. Automating the process of pulling from git will eat up most of the need for that. Hubot would work also, but it's overkill and written in Coffeescript.