diff options
Diffstat (limited to 'kokoro/gcp_ubuntu')
-rw-r--r-- | kokoro/gcp_ubuntu/release-nightly.cfg | 5 | ||||
-rwxr-xr-x | kokoro/gcp_ubuntu/run_build.sh | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/kokoro/gcp_ubuntu/release-nightly.cfg b/kokoro/gcp_ubuntu/release-nightly.cfg index 27ceb4d8c..09939197d 100644 --- a/kokoro/gcp_ubuntu/release-nightly.cfg +++ b/kokoro/gcp_ubuntu/release-nightly.cfg @@ -2,8 +2,9 @@ build_file: "repo/kokoro/gcp_ubuntu/run_build.sh" action { - # Upload only the runsc binary. + # Upload only the runsc binary. It may be in multiple paths, so we must use + # the wildcard. define_artifacts { - regex: "runsc" + regex: "**/runsc" } } diff --git a/kokoro/gcp_ubuntu/run_build.sh b/kokoro/gcp_ubuntu/run_build.sh index c727b0862..43b01a1ff 100755 --- a/kokoro/gcp_ubuntu/run_build.sh +++ b/kokoro/gcp_ubuntu/run_build.sh @@ -31,5 +31,10 @@ cd git/repo # Build runsc. bazel build //runsc -# Move the built binary to the top of the artifacts directory. -mv bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${KOKORO_ARTIFACTS_DIR}"/runsc +# Move the runsc binary into "latest" directory, and also a directory with the +# current date. +latest_dir="${KOKORO_ARTIFACTS_DIR}"/nightly/latest +today_dir="${KOKORO_ARTIFACTS_DIR}"/nightly/"$(date -Idate)" +mkdir -p "${latest_dir}" "${today_dir}" +cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${latest_dir}" +cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${today_dir}" |