Created
August 23, 2015 15:50
-
-
Save benjiao/2c6636b146a6608f9329 to your computer and use it in GitHub Desktop.
Shell script to deploy an app from a git repository using a deploy key
This file contains 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/bash | |
eval `ssh-agent -s` | |
ssh-add ~/.ssh/deploy-key | |
cd /sample/path/to/app | |
git pull origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment