-
-
Save abogoyavlensky/47dafb3eb25910252e28329759f1a7e9 to your computer and use it in GitHub Desktop.
Drone setup for deploying every branch to Dokku
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 | |
if [ $DRONE_BRANCH ]; then | |
git fetch --unshallow | |
git remote remove dokku | |
git remote add dokku [email protected]:project-bar-$DRONE_BRANCH | |
git push dokku $DRONE_BRANCH:master | |
fi |
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
image: phusion/passenger-full | |
script: | |
- sudo apt-get update | |
- gem install sass | |
- npm config set loglevel warn | |
- npm install -g grunt-cli | |
- npm install | |
- npm test | |
deploy: | |
bash: | |
command: './deploy' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment