Merge pull request #2096 from bradrydzewski/feature/grpc [ci skip]

build agent with CGO disabled [ci skip]
This commit is contained in:
Brad Rydzewski 2017-06-29 20:39:19 -04:00 committed by GitHub
commit 7055966c30
2 changed files with 2 additions and 2 deletions

View file

@ -23,4 +23,4 @@ git clone git@github.com:drone/drone-enterprise.git extras
# build a static binary with the build number and extra features. # build a static binary with the build number and extra features.
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent

View file

@ -1,7 +1,7 @@
# docker build --rm -t drone/drone . # docker build --rm -t drone/drone .
FROM centurylink/ca-certs FROM centurylink/ca-certs
ENV GODEBUG=netdns=go
ADD release/drone-agent /bin/ ADD release/drone-agent /bin/
ENTRYPOINT ["/bin/drone-agent"] ENTRYPOINT ["/bin/drone-agent"]