Skip to content

Commit

Permalink
Publishes istioctl binaries for GCS for separate (istio#15422)
Browse files Browse the repository at this point in the history
download.

Addresses istio#11527.

Signed-off-by: Jason Clark <[email protected]>
  • Loading branch information
J. Clark authored and istio-testing committed Jul 16, 2019
1 parent ac717d2 commit 23cfe63
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 17 additions & 3 deletions release/create_release_archives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ function create_linux_archive() {

env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istio-${VER_STRING}-linux.tar.gz" "istio-${VER_STRING}" \
|| error_exit 'Could not create linux archive'
|| error_exit 'Could not create istio linux archive'

env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istioctl-${VER_STRING}-linux.tar.gz" "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}"/istioctl-linux \
|| error_exit 'Could not create istioctl linux archive'

rm "${istioctl_path}"
}

Expand All @@ -101,7 +106,12 @@ function create_osx_archive() {

env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istio-${VER_STRING}-osx.tar.gz" "istio-${VER_STRING}" \
|| error_exit 'Could not create osx archive'
|| error_exit 'Could not create istio osx archive'

env GZIP=-9 "${TAR}" --owner releng --group releng -czf \
"${OUTPUT_PATH}/istioctl-${VER_STRING}-osx.tar.gz" "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}"/istioctl-osx \
|| error_exit 'Could not create istioctl osx archive'

rm "${istioctl_path}"
}

Expand All @@ -111,7 +121,11 @@ function create_windows_archive() {
${CP} "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}/istioctl-win.exe" "${istioctl_path}"

zip -r -q "${OUTPUT_PATH}/istio-${VER_STRING}-win.zip" "istio-${VER_STRING}" \
|| error_exit 'Could not create windows archive'
|| error_exit 'Could not create istio windows archive'

zip -r -q "${OUTPUT_PATH}/istioctl-${VER_STRING}-win.zip" "${OUTPUT_PATH}/${ISTIOCTL_SUBDIR}"/istioctl-win.exe \
|| error_exit 'Could not create istioctl windows archive'

rm "${istioctl_path}"
}

Expand Down
4 changes: 3 additions & 1 deletion release/gcb/gcb_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ function make_istio() {
sha256sum "${ISTIO_OUT}/istio-sidecar.deb" > "${OUTPUT_PATH}/deb/istio-sidecar.deb.sha256"
cp "${ISTIO_OUT}/istio-sidecar.deb" "${OUTPUT_PATH}/deb/"
cp "${ISTIO_OUT}"/archive/istio-*z* "${OUTPUT_PATH}/"

cp "${ISTIO_OUT}"/archive/istioctl*.tar.gz "${OUTPUT_PATH}/"
cp "${ISTIO_OUT}"/archive/istioctl*.zip "${OUTPUT_PATH}/"

rm -r "${ISTIO_OUT}/docker" || true
BUILD_DOCKER_TARGETS=(docker.save)

Expand Down

0 comments on commit 23cfe63

Please sign in to comment.