summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--kokoro/gcp_ubuntu/release-nightly.cfg5
-rwxr-xr-xkokoro/gcp_ubuntu/run_build.sh2
2 files changed, 5 insertions, 2 deletions
diff --git a/kokoro/gcp_ubuntu/release-nightly.cfg b/kokoro/gcp_ubuntu/release-nightly.cfg
index 09939197d..cae10cb83 100644
--- a/kokoro/gcp_ubuntu/release-nightly.cfg
+++ b/kokoro/gcp_ubuntu/release-nightly.cfg
@@ -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"
}
}
diff --git a/kokoro/gcp_ubuntu/run_build.sh b/kokoro/gcp_ubuntu/run_build.sh
index bc1fe433c..056d242d4 100755
--- a/kokoro/gcp_ubuntu/run_build.sh
+++ b/kokoro/gcp_ubuntu/run_build.sh
@@ -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