build: use initial checkout within container

speedup and simplify the build within the container
This commit is contained in:
bergquist
2017-03-03 11:07:05 +01:00
parent f185c2c953
commit 26bb9ad399
4 changed files with 8 additions and 23 deletions
+3 -1
View File
@@ -5,8 +5,10 @@ mkdir -p dist
echo "Circle branch: ${CIRCLE_BRANCH}"
echo "Circle tag: ${CIRCLE_TAG}"
docker run -i -t --name gfbuild \
-v $(pwd)/dist:/tmp/dist \
-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