Added deploy step that runs build in centos6 container

This commit is contained in:
Torkel Ödegaard 2015-03-07 13:22:52 +01:00
parent 0d367d4b54
commit e3ce8048ad
4 changed files with 23 additions and 5 deletions

View File

@ -16,5 +16,13 @@ dependencies:
test:
override:
- godep go test -v ./pkg/...
- ./node_modules/grunt-cli/bin/grunt test
- echo "test"
# - godep go test -v ./pkg/...
# - ./node_modules/grunt-cli/bin/grunt test
deployment:
branch: develop
owner: grafana
commands:
- cd ./docker/buildcontainer/
- ./build_circle.sh

View File

@ -15,6 +15,6 @@ RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
WORKDIR /go
WORKDIR /go/src/github.com/grafana/grafana
CMD ["go", "run", "build.go", "build"]

View File

@ -7,4 +7,4 @@ docker build --tag "grafana/buildcontainer" .
docker run -i -t \
-v /home/torkel/dev/go:/go \
--name gfbuild grafana/buildcontainer /bin/bash
--name gfbuild grafana/buildcontainer

View File

@ -0,0 +1,10 @@
#!/bin/bash
docker kill gfbuild
docker rm gfbuild
docker build --tag "grafana/buildcontainer" .
docker run -i -t \
-v /home/ubuntu/.go_workspace:/go \
--name gfbuild grafana/buildcontainer