Closed divergentdave closed 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.
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 togit pull
in the inspectors-general directory.