Merge pull request #2096 from bradrydzewski/feature/grpc [ci skip]
build agent with CGO disabled [ci skip]
This commit is contained in:
commit
7055966c30
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# docker build --rm -t drone/drone .
|
||||
|
||||
FROM centurylink/ca-certs
|
||||
|
||||
ENV GODEBUG=netdns=go
|
||||
ADD release/drone-agent /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone-agent"]
|
||||
|
|
Loading…
Reference in a new issue