From aaac7cc55641ea44f835b1c147c7bf5af3f61539 Mon Sep 17 00:00:00 2001 From: Leonard Gram Date: Mon, 14 Jan 2019 13:42:58 +0100 Subject: [PATCH] build: build specific enterprise version when releasing. (cherry picked from commit b1f5a232da7b9acb6026fec87f5bba6cbd2180c3) --- scripts/build/prepare-enterprise.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build/prepare-enterprise.sh b/scripts/build/prepare-enterprise.sh index 0e1c3da2dbd..a2ab269d1cb 100755 --- a/scripts/build/prepare-enterprise.sh +++ b/scripts/build/prepare-enterprise.sh @@ -1,6 +1,15 @@ #!/bin/bash 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 ./build.sh