Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
<script/binary>: print more information when building (#739)
Browse files Browse the repository at this point in the history
* <script/binary>: print more information when building

* Update binary

Fix typo
  • Loading branch information
knightXun authored and andresmgot committed May 9, 2018
1 parent 147424d commit 082209d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions script/binary
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@

set -e


GIT_COMMIT=$(git describe --tags --dirty)
BUILD_FLAGS=(-ldflags="-w -X github.com/kubeless/kubeless/pkg/version.Version=${GIT_COMMIT}")

# Get rid of existing binary
rm -f ${GOPATH%%:*}/bin/kubeless*
echo "Removing Old Kubeless binaries"
rm -f ${GOPATH%%:*}/bin/kubeless
rm -f ${GOPATH%%:*}/bin/kafka-trigger-controller
rm -f ${GOPATH%%:*}/bin/kubeless-controller-manager
rm -f ${GOPATH%%:*}/bin/nats-trigger-controller

echo "Build Kubeless Components binaries"
# Build binary
go install \
"${BUILD_FLAGS[@]}" \
github.com/kubeless/kubeless/cmd/...

if [ $? -eq 0 ]; then
echo "Build successful. Program saved at ${GOPATH%%:*}/bin"
echo "Build Kubeless Components successful. Program saved at ${GOPATH%%:*}/bin"
else
echo "Build failed."
echo "Build Kubeless Components failed."
fi

0 comments on commit 082209d

Please sign in to comment.