From 172a805671e54a886ce77f1a9c7299c49c0efa5f Mon Sep 17 00:00:00 2001 From: ysicing Date: Thu, 2 Aug 2018 14:11:56 +0800 Subject: [PATCH] [REV] update release.sh --- Makefile | 4 ++-- release.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cc2499437..95b39c6bf 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,8 @@ deb: @bash ./release.sh deb rpm: @bash ./release.sh rpm -pkgs: - @bash ./release.sh pkg +pkg: + @bash ./release.sh build run:build ifeq ($(WHAT),api) diff --git a/release.sh b/release.sh index f6c1c8fc9..611aa1075 100755 --- a/release.sh +++ b/release.sh @@ -32,7 +32,8 @@ function build() { docker run --rm -v `pwd`:${WORK_DIR} -w ${WORK_DIR} -it golang:${GO_VERSION} go build -ldflags "-w -s -X github.com/goodrain/rainbond/cmd.version=${release_desc}" -o $releasedir/dist/usr/local/bin/node ./cmd/node echo "build grctl" docker run --rm -v `pwd`:${WORK_DIR} -w ${WORK_DIR} -it golang:${GO_VERSION} go build -ldflags "-w -s -X github.com/goodrain/rainbond/cmd.version=${release_desc}" -o $releasedir/dist/usr/local/bin/grctl ./cmd/grctl - + echo "build certutil" + docker run --rm -v `pwd`:${WORK_DIR} -w ${WORK_DIR} -it golang:${GO_VERSION} go build -ldflags "-w -s -X github.com/goodrain/rainbond/cmd.version=${release_desc}" -o $releasedir/dist/usr/local/bin/grcert ./cmd/certutil cd $releasedir/dist/usr/local/ tar zcf pkg.tgz `find . -maxdepth 1|sed 1d` @@ -41,6 +42,7 @@ FROM alpine:3.6 COPY pkg.tgz / EOF docker build -t rainbond/cni:rbd_v$VERSION . + docker push rainbond/cni:rbd_v$VERSION } build_items=(api builder entrance grctl monitor mq node webcli worker eventlog)