浏览代码

build: build specific enterprise version when releasing.

Leonard Gram 7 年之前
父节点
当前提交
b1f5a232da
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      scripts/build/prepare-enterprise.sh

+ 10 - 1
scripts/build/prepare-enterprise.sh

@@ -1,6 +1,15 @@
 #!/bin/bash
 #!/bin/bash
 
 
 cd ..
 cd ..
-git clone -b master --single-branch git@github.com:grafana/grafana-enterprise.git --depth 1
+
+
+if [ -z "$CIRCLE_TAG" ]; then
+  _target="master"
+else
+  _target="$CIRCLE_TAG"
+fi
+
+git clone -b "$_target" --single-branch git@github.com:grafana/grafana-enterprise.git --depth 1
+
 cd grafana-enterprise
 cd grafana-enterprise
 ./build.sh
 ./build.sh