Add script/.build to keep BUILD_FLAGS in one place
This commit is contained in:
+3
-2
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
source "$(dirname "$BASH_SOURCE")/.build"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
OS_PLATFORM_ARG=(-os="darwin linux windows")
|
||||
else
|
||||
@@ -21,6 +23,5 @@ rm -f kompose*
|
||||
# Build binaries
|
||||
gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \
|
||||
-output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \
|
||||
-tags experimental \
|
||||
-ldflags="-w -X github.com/skippbox/kompose/version.GITCOMMIT=${GITCOMMIT}" \
|
||||
"${BUILD_FLAGS[@]}" \
|
||||
./cli/main
|
||||
|
||||
Reference in New Issue
Block a user