Created
October 6, 2019 06:24
-
-
Save idoberko2/bdaae8fa350cc20638e39d21f02ca82f to your computer and use it in GitHub Desktop.
Deployment script to Dokku
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/bash | |
| eval "$(ssh-agent -s)"; | |
| chmod 600 .travis/dokku-deploy.key; | |
| ssh-add .travis/dokku-deploy.key; | |
| ssh-keyscan "$DOKKU_HOST" >> ~/.ssh/known_hosts; | |
| git remote add deploy dokku@"$DOKKU_HOST":"$DOKKU_APP"; | |
| git config --global push.default simple; | |
| git push deploy master; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment