https://github.com/fixate/dokku-repodeploy
Dokku plugin to help ansible deploy and manage an application
https://github.com/fixate/dokku-repodeploy
Last synced: 2 months ago
JSON representation
Dokku plugin to help ansible deploy and manage an application
- Host: GitHub
- URL: https://github.com/fixate/dokku-repodeploy
- Owner: fixate
- Created: 2014-08-27T10:13:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-08T11:24:56.000Z (over 10 years ago)
- Last Synced: 2025-01-04T08:37:22.835Z (4 months ago)
- Language: Shell
- Size: 207 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dokku-repodeploy
=============Some useful commands for dokku to use with your continuous integration. Basically gives you a command which updates a bare repository on the server and pushes that to dokku:receive just like the dokku git plugin does.
This allows you to make for e.g. an Ansible playbook which runs the following to deploy your app:
`dokku repo:deploy myredonkapp https://github.com/redonk/app.git master`
## Installation
```sh
git clone https://github.com/fixate/dokku-deployrepo.git /var/lib/dokku/plugins/dokku-deployrepo
dokku plugins-install
```## Usage
#### Your deploy step:
Too 'add' the application (usefull if you want to put ssl certificates in place before deploying)
`dokku repo:init [app_name] [scm_repository] (branch/ref or defaults to master)`
deploy (calls ansible:init)
`dokku repo:deploy [app_name] [scm_repository] (branch/ref or defaults to master)`
You will need to allow add github/bitbucket server key to known_hosts on the deployment target.
Something like:`ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts`
Not ideal I know...
#### Restart the app:
`dokku repo:restart_app [app_name]`