only copy binaries to minikube/latest on non-PR builds

pull/12893/head
Sharif Elgamal 2021-11-08 08:35:57 -08:00
parent 41a3a99f87
commit 4d1d0e0cde
1 changed files with 4 additions and 2 deletions

View File

@ -83,5 +83,7 @@ rm -rf out/buildroot
# -R: recursive. strangely, this is not the default for sync.
gsutil -m rsync -dJR out "gs://${bucket}/${ghprbPullId}"
# Copy artifacts to known mirror location
gsutil cp -R "gs://${bucket}/${ghprbPullId}" "gs://${bucket_mirror}"
if [[ "${ghprbPullId}" -eq "master" ]] then
# Copy artifacts to known mirror location
gsutil cp -R "gs://${bucket}/${ghprbPullId}" "gs://${bucket_mirror}"
fi