kompose/script/binary
Tomas Kral 657ccf133d add '-tag experimental' to gox build
This is required by Docker to build it with bundlefile support.
2016-07-21 20:20:43 +02:00

25 lines
424 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$1" ]; then
OS_PLATFORM_ARG=(-os="darwin linux windows")
else
OS_PLATFORM_ARG=($1)
fi
if [ -z "$2" ]; then
OS_ARCH_ARG=(-arch="386 amd64")
else
OS_ARCH_ARG=($2)
fi
# Get rid of existing binaries
rm -f kompose*
# Build binaries
gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \
-output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \
-tags experimental \
./cli/main