summaryrefslogtreecommitdiffhomepage
path: root/kokoro
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2018-05-31 10:53:08 -0700
committerShentubot <shentubot@google.com>2018-05-31 10:53:54 -0700
commit3547c4886773acec0ac562104f055528ed490b75 (patch)
tree42b8a5947d7aa0891ffeea5a1a62ea0bdb1a8e6a /kokoro
parent57edd0ee199150d7e25c3f072f3779a761ce6b7d (diff)
Add SHA512 file to nightly build
PiperOrigin-RevId: 198745666 Change-Id: I38d4163cd65f1236b09ce4f6481197a9a9fd29f2
Diffstat (limited to 'kokoro')
-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