Skip to content

Instantly share code, notes, and snippets.

View abogoyavlensky's full-sized avatar
🌊
Coding

Andrey Bogoyavlenskiy abogoyavlensky

🌊
Coding
View GitHub Profile
@abogoyavlensky
abogoyavlensky / deploy.sh
Created March 17, 2017 14:36 — forked from gcpantazis/deploy.sh
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