Skip to content

Instantly share code, notes, and snippets.

@abogoyavlensky
Forked from gcpantazis/deploy.sh
Created March 17, 2017 14:36
Show Gist options
  • Save abogoyavlensky/47dafb3eb25910252e28329759f1a7e9 to your computer and use it in GitHub Desktop.
Save abogoyavlensky/47dafb3eb25910252e28329759f1a7e9 to your computer and use it in GitHub Desktop.
Drone setup for deploying every branch to Dokku
#!/bin/bash
if [ $DRONE_BRANCH ]; then
git fetch --unshallow
git remote remove dokku
git remote add dokku dokku@foo.dokkuhost.com:project-bar-$DRONE_BRANCH
git push dokku $DRONE_BRANCH:master
fi
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