dockerbuilder: build in current directory instead /go and /tmp
This commit is contained in:
parent
0512cf9c83
commit
7577f48dc4
|
@ -11,16 +11,17 @@ fi
|
|||
|
||||
export REVISION=$1 AWS_ID=$2 AWS_KEY=$3
|
||||
|
||||
mkdir -p /go/src/$PACKAGE
|
||||
git clone "https://$PACKAGE" /go/src/$PACKAGE
|
||||
cd /go/src/$PACKAGE
|
||||
mkdir -p go/src/$PACKAGE
|
||||
git clone "https://$PACKAGE" go/src/$PACKAGE
|
||||
cd go/src/$PACKAGE
|
||||
git checkout $REVISION
|
||||
|
||||
# FIXME: checkout to specific revision
|
||||
|
||||
BUILDDIR=/tmp/docker-$REVISION
|
||||
BUILDDIR=docker-$REVISION
|
||||
mkdir -p $BUILDDIR
|
||||
(cd docker && go get && go build -o $BUILDDIR/docker)
|
||||
|
||||
tar -f /tmp/docker.tgz -C $(dirname $BUILDDIR) -zc $(basename $BUILDDIR)
|
||||
BUILD_ARCHIVE=docker-$REVISION.tgz
|
||||
tar -f BUILD_ARCHIVE -C $(dirname $BUILDDIR) -zc $(basename $BUILDDIR)
|
||||
s3cmd -P put /tmp/docker.tgz s3://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-$REVISION.tgz
|
||||
|
|
Loading…
Reference in New Issue