Setup Drone #bash
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 | |
set -e | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) || : | |
source /home/ubuntu/.gvm/scripts/gvm | |
gvm install go1.2.2 --with-build-tools --binary | |
gvm use go1.2.2 | |
export GOPATH=$HOME/gopath/ | |
export PATH=$HOME/gopath/bin:$PATH | |
mkdir -p $GOPATH/src/github.com/drone/ | |
cd $GOPATH/src/github.com/drone/ | |
git clone git://github.com/Mistobaan/drone.git || : | |
cd drone | |
SHA1=$(git rev-parse HEAD) | |
sudo docker build -t therealreal/drone:$SHA1 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment