Minor build improvements
Makefile
* Make Go build flags parameterizable
* Verbose by default
* Do not force complete rebuild
* Remove unnecessary '-installsuffix' flag
https://plus.google.com/117192131596509381660/posts/eNnNePihYnK
* Log build steps
* Rename 'clean' target to 'clean-container'
* Move artifact copy to '.container' target
* Add 'clean' target
Shell script
* Fix shellcheck SC2068
https://github.com/koalaman/shellcheck/wiki/SC2068
* Reject mandatory vars with empty values
This commit is contained in:
parent
82bfcb0337
commit
446641eded
3 changed files with 26 additions and 13 deletions
|
|
@ -56,6 +56,7 @@ TAG=${TAG:-"0.0"}
|
|||
HOME=${HOME:-/root}
|
||||
KUBECONFIG=${HOME}/.kube/config
|
||||
GOARCH=${GOARCH}
|
||||
GOBUILD_FLAGS=${GOBUILD_FLAGS:-"-v"}
|
||||
PWD=${PWD}
|
||||
BUSTED_ARGS=${BUSTED_ARGS:-""}
|
||||
REPO_INFO=${REPO_INFO:-local}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue