harness-drone/scripts/build.sh

8 lines
243 B
Bash
Executable file

#!/bin/sh
echo "building docker images for ${GOOS}/${GOARCH} ..."
REPO="github.com/drone/drone"
# compile the server using the cgo
go build -ldflags "-extldflags \"-static\"" -o release/linux/${GOARCH}/drone-server ${REPO}/cmd/drone-server