Skip to content

Commit

Permalink
Generates sha256 for each istioctl archive published to GCS. (istio#1…
Browse files Browse the repository at this point in the history
…5629)

Signed-off-by: Jason Clark <[email protected]>
  • Loading branch information
J. Clark authored and istio-testing committed Jul 23, 2019
1 parent d749457 commit 66bf9e5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions release/gcb/gcb_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,19 @@ 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}/"

declare -a ISTIOCTL_ARCHIVES

mapfile -t ISTIOCTL_ARCHIVES < <(ls "${ISTIO_OUT}"/archive/istioctl*.tar.gz)
mapfile -t ISTIOCTL_ARCHIVES < <(ls "${ISTIO_OUT}"/archive/istioctl*.zip)

for i in "${ISTIOCTL_ARCHIVES[@]}"; do
sha256sum "$i" > "$i.sha256"
done

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

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

0 comments on commit 66bf9e5

Please sign in to comment.