浏览代码

Log each release step.

Signed-off-by: David Calavera <david.calavera@gmail.com>
(cherry picked from commit 776600fabbf52d21a061a9021011774d23df9b67)
David Calavera 10 年之前
父节点
当前提交
ebf396c6e8
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      hack/release.sh

+ 7 - 0
hack/release.sh

@@ -70,6 +70,7 @@ BUCKET=$AWS_S3_BUCKET
 #	GPG_KEY="740B314AE3941731B942C66ADF4FD13717AAD7D6"
 #	GPG_KEY="740B314AE3941731B942C66ADF4FD13717AAD7D6"
 
 
 setup_s3() {
 setup_s3() {
+	echo "Setting up S3"
 	# Try creating the bucket. Ignore errors (it might already exist).
 	# Try creating the bucket. Ignore errors (it might already exist).
 	s3cmd mb "s3://$BUCKET" 2>/dev/null || true
 	s3cmd mb "s3://$BUCKET" 2>/dev/null || true
 	# Check access to the bucket.
 	# Check access to the bucket.
@@ -102,6 +103,7 @@ s3_url() {
 }
 }
 
 
 build_all() {
 build_all() {
+	echo "Building release"
 	if ! ./hack/make.sh "${RELEASE_BUNDLES[@]}"; then
 	if ! ./hack/make.sh "${RELEASE_BUNDLES[@]}"; then
 		echo >&2
 		echo >&2
 		echo >&2 'The build or tests appear to have failed.'
 		echo >&2 'The build or tests appear to have failed.'
@@ -162,6 +164,7 @@ upload_release_build() {
 }
 }
 
 
 release_build() {
 release_build() {
+	echo "Releasing binaries"
 	GOOS=$1
 	GOOS=$1
 	GOARCH=$2
 	GOARCH=$2
 
 
@@ -246,6 +249,7 @@ release_build() {
 # 1. A full APT repository is published at $BUCKET/ubuntu/
 # 1. A full APT repository is published at $BUCKET/ubuntu/
 # 2. Instructions for using the APT repository are uploaded at $BUCKET/ubuntu/index
 # 2. Instructions for using the APT repository are uploaded at $BUCKET/ubuntu/index
 release_ubuntu() {
 release_ubuntu() {
+	echo "Releasing ubuntu"
 	[ -e "bundles/$VERSION/ubuntu" ] || {
 	[ -e "bundles/$VERSION/ubuntu" ] || {
 		echo >&2 './hack/make.sh must be run before release_ubuntu'
 		echo >&2 './hack/make.sh must be run before release_ubuntu'
 		exit 1
 		exit 1
@@ -338,16 +342,19 @@ EOF
 
 
 # Upload the index script
 # Upload the index script
 release_index() {
 release_index() {
+	echo "Releasing index"
 	sed "s,url='https://get.docker.com/',url='$(s3_url)/'," hack/install.sh | write_to_s3 "s3://$BUCKET/index"
 	sed "s,url='https://get.docker.com/',url='$(s3_url)/'," hack/install.sh | write_to_s3 "s3://$BUCKET/index"
 }
 }
 
 
 release_test() {
 release_test() {
+	echo "Releasing tests"
 	if [ -e "bundles/$VERSION/test" ]; then
 	if [ -e "bundles/$VERSION/test" ]; then
 		s3cmd --acl-public sync "bundles/$VERSION/test/" "s3://$BUCKET/test/"
 		s3cmd --acl-public sync "bundles/$VERSION/test/" "s3://$BUCKET/test/"
 	fi
 	fi
 }
 }
 
 
 setup_gpg() {
 setup_gpg() {
+	echo "Setting up GPG"
 	# Make sure that we have our keys
 	# Make sure that we have our keys
 	mkdir -p "$HOME/.gnupg/"
 	mkdir -p "$HOME/.gnupg/"
 	s3cmd sync "s3://$BUCKET/ubuntu/.gnupg/" "$HOME/.gnupg/" || true
 	s3cmd sync "s3://$BUCKET/ubuntu/.gnupg/" "$HOME/.gnupg/" || true