Just add this bad boy in your Hubot's scripts
directory, then call hubot failboat
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Mostly stolen from https://github.com/vidpresso/hubot-syncer/blob/master/pullpushprod.sh | |
cd /app | |
echo "Setting up SSH." | |
mkdir /app/.ssh | |
echo "$SSH_PRIVATE_KEY" > .ssh/id_rsa | |
echo "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config |
NewerOlder