Add script/.build to keep BUILD_FLAGS in one place

This commit is contained in:
Tomas Kral
2016-08-11 16:50:16 +02:00
parent a15a8f36ca
commit e64f1c1215
4 changed files with 19 additions and 9 deletions
+3 -2
View File
@@ -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