tech(build): moves builds script into main repo
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# This script is executed from within the container.
|
||||
#
|
||||
|
||||
GOPATH=/go
|
||||
REPO_PATH=$GOPATH/src/github.com/grafana/grafana
|
||||
|
||||
mkdir -p /go/src/github.com/grafana
|
||||
cd /go/src/github.com/grafana
|
||||
|
||||
echo "Grafana branch!!"
|
||||
echo $GRAFANA_BRANCH
|
||||
echo "GRAFANA BRANCH: ${GRAFANA_BRANCH}"
|
||||
|
||||
git clone --depth 1 https://github.com/grafana/grafana.git -b $GRAFANA_BRANCH
|
||||
|
||||
cd $REPO_PATH
|
||||
|
||||
go run build.go build
|
||||
npm install -g yarn
|
||||
yarn install --pure-lockfile
|
||||
|
||||
source /etc/profile.d/rvm.sh
|
||||
rvm use 2.1.9 --default
|
||||
|
||||
gem install fpm -v 1.4
|
||||
|
||||
go run build.go package latest
|
||||
|
||||
cp dist/* /tmp/dist/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user