Add SHA512 file to nightly build

PiperOrigin-RevId: 198745666
Change-Id: I38d4163cd65f1236b09ce4f6481197a9a9fd29f2
This commit is contained in:
Fabricio Voznika
2018-05-31 10:53:54 -07:00
committed by Shentubot
parent 57edd0ee19
commit 3547c48867
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -2,9 +2,10 @@
build_file: "repo/kokoro/gcp_ubuntu/run_build.sh"
action {
# Upload only the runsc binary. It may be in multiple paths, so we must use
# the wildcard.
# Upload runsc binary and its checksum. It may be in multiple paths, so we
# must use the wildcard.
define_artifacts {
regex: "**/runsc"
regex: "**/runsc.sha512"
}
}
+2
View File
@@ -37,4 +37,6 @@ latest_dir="${KOKORO_ARTIFACTS_DIR}"/latest
today_dir="${KOKORO_ARTIFACTS_DIR}"/"$(date -Idate)"
mkdir -p "${latest_dir}" "${today_dir}"
cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${latest_dir}"
sha512sum "${latest_dir}"/runsc | awk '{print $1 " runsc"}' > "${latest_dir}"/runsc.sha512
cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${today_dir}"
sha512sum "${today_dir}"/runsc | awk '{print $1} " runsc"' > "${today_dir}"/runsc.sha512