Commit 8dfa1f4c by Leonard Gram

build: fixes publishing version.

parent 77b3da3e
...@@ -342,7 +342,7 @@ jobs: ...@@ -342,7 +342,7 @@ jobs:
name: Deploy to grafana.com name: Deploy to grafana.com
command: | command: |
cd enterprise-dist cd enterprise-dist
../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -enterprise -version "$(cat grafana.version)" --nightly ../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -enterprise -version "v$(cat grafana.version)" --nightly
deploy-enterprise-release: deploy-enterprise-release:
...@@ -407,7 +407,7 @@ jobs: ...@@ -407,7 +407,7 @@ jobs:
command: | command: |
rm dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz rm dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz
rm dist/*latest* rm dist/*latest*
cd dist && ../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "$(cat grafana.version)" --nightly cd dist && ../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -version "v$(cat grafana.version)" --nightly
deploy-release: deploy-release:
docker: docker:
......
...@@ -32,13 +32,6 @@ fi ...@@ -32,13 +32,6 @@ fi
echo "Build arguments: $OPT" echo "Build arguments: $OPT"
echo "current dir: $(pwd)" echo "current dir: $(pwd)"
if [ -d "dist" ]; then
rm -rf dist
fi
mkdir dist
go run build.go -gen-version ${OPT} > dist/grafana.version
# build only amd64 for enterprise # build only amd64 for enterprise
if echo "$EXTRA_OPTS" | grep -vq enterprise ; then if echo "$EXTRA_OPTS" | grep -vq enterprise ; then
go run build.go -goarch armv6 -cc ${CCARMV6} ${OPT} build go run build.go -goarch armv6 -cc ${CCARMV6} ${OPT} build
...@@ -62,6 +55,13 @@ fi ...@@ -62,6 +55,13 @@ fi
echo "Building frontend" echo "Building frontend"
go run build.go ${OPT} build-frontend go run build.go ${OPT} build-frontend
if [ -d "dist" ]; then
rm -rf dist
fi
mkdir dist
go run build.go -gen-version ${OPT} > dist/grafana.version
# Load ruby, needed for packing with fpm # Load ruby, needed for packing with fpm
source /etc/profile.d/rvm.sh source /etc/profile.d/rvm.sh
......
...@@ -31,13 +31,6 @@ fi ...@@ -31,13 +31,6 @@ fi
echo "Build arguments: $OPT" echo "Build arguments: $OPT"
echo "current dir: $(pwd)" echo "current dir: $(pwd)"
if [ -d "dist" ]; then
rm -rf dist
fi
mkdir dist
go run build.go -gen-version ${OPT} > dist/grafana.version
go run build.go -goarch armv6 -cc ${CCARMV6} ${OPT} build go run build.go -goarch armv6 -cc ${CCARMV6} ${OPT} build
go run build.go -goarch armv7 -cc ${CCARMV7} ${OPT} build go run build.go -goarch armv7 -cc ${CCARMV7} ${OPT} build
go run build.go -goarch arm64 -cc ${CCARM64} ${OPT} build go run build.go -goarch arm64 -cc ${CCARM64} ${OPT} build
...@@ -49,6 +42,13 @@ yarn install --pure-lockfile --no-progress ...@@ -49,6 +42,13 @@ yarn install --pure-lockfile --no-progress
echo "Building frontend" echo "Building frontend"
go run build.go ${OPT} build-frontend go run build.go ${OPT} build-frontend
if [ -d "dist" ]; then
rm -rf dist
fi
mkdir dist
go run build.go -gen-version ${OPT} > dist/grafana.version
# Load ruby, needed for packing with fpm # Load ruby, needed for packing with fpm
source /etc/profile.d/rvm.sh source /etc/profile.d/rvm.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment