[REV] update release.sh

This commit is contained in:
ysicing 2018-08-02 14:11:56 +08:00
parent 3b9d3f1fff
commit 172a805671
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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)