From f8b9e00ed04cc4061b915d169ed61f11e3b26e64 Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Fri, 27 Sep 2019 18:42:02 +0800 Subject: [PATCH] feat(cd): smaller num document for benchmarking --- .drone-cd.yml | 2 +- benchmark-eval.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone-cd.yml b/.drone-cd.yml index d986cc4a..63be78d5 100644 --- a/.drone-cd.yml +++ b/.drone-cd.yml @@ -218,7 +218,7 @@ steps: BOT_URL: from_secret: BOT_URL commands: - - export MSG_LINK=$DRONE_REPO_LINK + - export MSG_LINK="https://github.com/gnes-ai/benchmark" - export MSG_TITLE="✅🏍️ New benchmark is updated!" - export MSG_CONTENT="" - ./shell/push-wechatwork.sh diff --git a/benchmark-eval.sh b/benchmark-eval.sh index cfa5412d..d92b6230 100755 --- a/benchmark-eval.sh +++ b/benchmark-eval.sh @@ -11,7 +11,13 @@ cd /workspace && rm -rf benchmark && git clone https://github.com/gnes-ai/benchm git remote rm origin && git remote add origin https://$GITHUB_USER:$GITHUB_PWD@github.com/gnes-ai/benchmark.git git config --global user.email "artex.xh@gmail.com" && git config --global user.name "Han Xiao" -export GNES_IMG_TAG=latest-alpine +if [[ -z "${DRONE_TAG}" ]]; then + VER_TAG="latest" +else + VER_TAG=${DRONE_TAG} +fi + +export GNES_IMG_TAG=${VER_TAG}-alpine docker swarm init make pull && make build