mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
26bb9ad399
speedup and simplify the build within the container
15 lines
383 B
Bash
Executable File
15 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p dist
|
|
|
|
echo "Circle branch: ${CIRCLE_BRANCH}"
|
|
echo "Circle tag: ${CIRCLE_TAG}"
|
|
docker run -i -t --name gfbuild \
|
|
-v $(pwd):/go/src/github.com/grafana/grafana \
|
|
-e "CIRCLE_BRANCH=${CIRCLE_BRANCH}" \
|
|
-e "CIRCLE_TAG=${CIRCLE_TAG}" \
|
|
-e "CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM}" \
|
|
grafana/buildcontainer
|
|
|
|
sudo chown -R ${USER:=$(/usr/bin/id -run)}:$USER dist
|