Skip to content

Commit

Permalink
hack: option to rename artifacts
Browse files Browse the repository at this point in the history
with proper version/os/arch suffix

Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Nov 17, 2020
1 parent 1dfa164 commit 3fc711b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/build-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0

if [ -n "${TAG}" ]; then
suffix="-v${TAG}-linux-amd4"
fi

for name in $( ls "${BASEDIR}/cmd/" ); do
path="${BASEDIR}/cmd/${name}"
if [ ! -d "${path}" ]; then
continue
fi
echo "go build -v -o \"${BASEDIR}/_output/${name}\" \"${path}\""
go build -v -o "${BASEDIR}/_output/${name}" "${path}"
go build -v -o "${BASEDIR}/_output/${name}${suffix}" "${path}"
done

0 comments on commit 3fc711b

Please sign in to comment.