mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
49de4ed28b
build: upgrades build pipeline from CircleCI 1.0 -> 2.0
34 lines
893 B
Bash
Executable File
34 lines
893 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# This script is executed from within the container.
|
|
#
|
|
|
|
GOPATH=/go
|
|
REPO_PATH=$GOPATH/src/github.com/grafana/grafana
|
|
|
|
cd /go/src/github.com/grafana/grafana
|
|
echo "current dir: $(pwd)"
|
|
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
echo "Building a release from tag $CIRCLE_TAG"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -includeBuildNumber=false build
|
|
else
|
|
echo "Building incremental build for $CIRCLE_BRANCH"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
fi
|
|
|
|
yarn install --pure-lockfile --no-progress
|
|
|
|
source /etc/profile.d/rvm.sh
|
|
|
|
echo "current dir: $(pwd)"
|
|
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
echo "Packaging a release from tag $CIRCLE_TAG"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -includeBuildNumber=false package latest
|
|
else
|
|
echo "Packaging incremental build for $CIRCLE_BRANCH"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} package latest
|
|
fi
|