Created
February 16, 2017 16:20
-
-
Save wyattjoh/d265571febb18ff63bf2216e9d605042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup the environments | |
export GOPATH=/tmp/go | |
mkdir -p "$GOPATH/src/github.com/coralproject" | |
ln -sf "$PWD" "$GOPATH/src/github.com/coralproject/shelf" | |
# build the binaries | |
CURRENT_DATE=$(date +%Y-%m-%d) | |
LDFLAGS="-X main.GitVersion=$BUILD_NUMBER -X main.GitRevision=$GIT_COMMIT -X main.BuildDate=$CURRENT_DATE" | |
for APP in askd corald sponged xeniad | |
do | |
PACKAGE=github.com/coralproject/shelf/cmd/$APP | |
GOOS=linux CGO_ENABLED=0 go build -a -ldflags "$LDFLAGS" -o cmd/$APP/$APP $PACKAGE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment