mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
dockerbuilder: let the Makefile upload to s3 with 'make release'
This commit is contained in:
parent
b6a5e604ab
commit
c08d245539
1 changed files with 3 additions and 18 deletions
|
@ -15,12 +15,10 @@ export REVISION=$1
|
||||||
|
|
||||||
if [ -z "$AWS_ID" ]; then
|
if [ -z "$AWS_ID" ]; then
|
||||||
echo "Warning: environment variable AWS_ID is not set. Won't upload to S3."
|
echo "Warning: environment variable AWS_ID is not set. Won't upload to S3."
|
||||||
NO_S3=1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$AWS_KEY" ]; then
|
if [ -z "$AWS_KEY" ]; then
|
||||||
echo "Warning: environment variable AWS_KEY is not set. Won't upload to S3."
|
echo "Warning: environment variable AWS_KEY is not set. Won't upload to S3."
|
||||||
NO_S3=1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$GPG_KEY" ]; then
|
if [ -z "$GPG_KEY" ]; then
|
||||||
|
@ -28,28 +26,15 @@ if [ -z "$GPG_KEY" ]; then
|
||||||
NO_UBUNTU=1
|
NO_UBUNTU=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REVISION" ]; then
|
rm -fr docker-release
|
||||||
rm -fr docker-master
|
git clone https://github.com/dotcloud/docker docker-release
|
||||||
git clone https://github.com/dotcloud/docker docker-master
|
cd docker-release
|
||||||
cd docker-master
|
|
||||||
else
|
|
||||||
rm -fr docker-$REVISION
|
|
||||||
git init docker-$REVISION
|
|
||||||
cd docker-$REVISION
|
|
||||||
git fetch -t https://github.com/dotcloud/docker $REVISION:$REVISION
|
|
||||||
git reset --hard FETCH_HEAD
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$REVISION" ]; then
|
if [ -z "$REVISION" ]; then
|
||||||
make release
|
make release
|
||||||
else
|
else
|
||||||
make release RELEASE_VERSION=$REVISION
|
make release RELEASE_VERSION=$REVISION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$NO_S3" ]; then
|
|
||||||
s3cmd -P put docker-$REVISION.tgz s3://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-$REVISION.tgz
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$NO_UBUNTU" ]; then
|
if [ -z "$NO_UBUNTU" ]; then
|
||||||
(cd packaging/ubuntu && make ubuntu)
|
(cd packaging/ubuntu && make ubuntu)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue