build.sh 539 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. #
  3. # This script is executed from within the container.
  4. #
  5. GOPATH=/go
  6. REPO_PATH=$GOPATH/src/github.com/grafana/grafana
  7. mkdir -p /go/src/github.com/grafana
  8. cd /go/src/github.com/grafana
  9. echo "CIRCLE BRANCH: ${CIRCLE_BRANCH}"
  10. git clone --depth 1 https://github.com/grafana/grafana.git -b $CIRCLE_BRANCH
  11. cd $REPO_PATH
  12. go run build.go build
  13. npm install -g yarn
  14. yarn install --pure-lockfile
  15. source /etc/profile.d/rvm.sh
  16. rvm use 2.1.9 --default
  17. gem install fpm -v 1.4
  18. go run build.go package latest
  19. cp dist/* /tmp/dist/