forked from LaconicNetwork/kompose
19 lines
339 B
Bash
Executable File
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
|