Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into correlation-resp-header
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank B Greco Jr committed May 11, 2018
2 parents 5e5b3ea + 474a08b commit 29cfc02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ S3_BASE_PATH="s3://kanalictl/release"
echo $RELEASE >> latest.txt
aws s3 mv latest.txt $S3_BASE_PATH/latest.txt

BUILD_FLAGS=(-ldflags="-X $PATH_IMPORT/pkg/version.version=${RELEASE} -X $PATH_IMPORT/pkg/version.commit=${GIT_COMMIT}")

for distro in ${DISTRIBUTIONS[@]}
do
remote_path="${S3_BASE_PATH}/${RELEASE}/${distro}/${PROJECT_NAME}ctl"
Expand All @@ -32,7 +34,7 @@ do
desired_delimiter=_
gox_binary_name=$(echo "${raw_binary_name}" | sed s/$actual_delimiter/$desired_delimiter/)

gox -osarch=$distro ${PATH_IMPORT}/cmd/kanalictl
gox "${BUILD_FLAGS[@]}" -osarch=$distro ${PATH_IMPORT}/cmd/kanalictl

if [[ $distro = *"windows"* ]]; then
aws s3 mv ${gox_binary_name}.exe ${remote_path}.exe
Expand Down

0 comments on commit 29cfc02

Please sign in to comment.