kompose/script/binary
2016-08-11 11:00:46 +02:00

19 lines
339 B
Bash
Executable File

#!/bin/bash
set -e
# Get rid of existing binary
rm -f kompose
# Build binary
go build \
-tags experimental \
-o kompose \
-ldflags="-w -X github.com/skippbox/kompose/version.GITCOMMIT=${GITCOMMIT}" \
./cli/main
if [ $? -eq 0 ]; then
echo "Build successful. Program saved as ${OUT_FILE}"
else
echo "Build failed."
fi