|
| 1 | +module(name = "cloud_archive") |
| 2 | + |
| 3 | +s3_archive = use_repo_rule("//:cloud_archive.bzl", "s3_archive") |
| 4 | + |
| 5 | +s3_archive( |
| 6 | + name = "archive_s3", |
| 7 | + bucket = "1e100-temp", |
| 8 | + build_file = "//:BUILD.archive", |
| 9 | + file_path = "cloud_archive_test.zip", |
| 10 | + sha256 = "d0ff6239646b3a60e4d8926402281311e003ae03183b1ae24f2adba5d9289f04", |
| 11 | + strip_prefix = "cloud_archive_test", |
| 12 | +) |
| 13 | + |
| 14 | +minio_archive = use_repo_rule("//:cloud_archive.bzl", "minio_archive") |
| 15 | + |
| 16 | +minio_archive( |
| 17 | + name = "archive_minio_gz", |
| 18 | + build_file = "//:BUILD.archive", |
| 19 | + file_path = "minio/temp/cloud_archive_test.tar.gz", |
| 20 | + sha256 = "bf4dd5304180561a745e816ee6a8db974a3fcf5b9d706a493776d77202c48bc9", |
| 21 | + strip_prefix = "cloud_archive_test", |
| 22 | +) |
| 23 | + |
| 24 | +minio_archive( |
| 25 | + name = "archive_minio_zstd", |
| 26 | + build_file = "//:BUILD.archive", |
| 27 | + file_path = "minio/temp/cloud_archive_test.tar.zst", |
| 28 | + sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73", |
| 29 | + strip_prefix = "dir1", |
| 30 | +) |
| 31 | + |
| 32 | +gs_archive = use_repo_rule("//:cloud_archive.bzl", "gs_archive") |
| 33 | + |
| 34 | +gs_archive( |
| 35 | + name = "archive_gcloud_gz", |
| 36 | + bucket = "depthwise-temp", |
| 37 | + build_file = "//:BUILD.archive", |
| 38 | + file_path = "cloud_archive_test.tar.gz", |
| 39 | + sha256 = "bf4dd5304180561a745e816ee6a8db974a3fcf5b9d706a493776d77202c48bc9", |
| 40 | + strip_prefix = "cloud_archive_test", |
| 41 | +) |
| 42 | + |
| 43 | +gs_archive( |
| 44 | + name = "archive_gcloud_zstd", |
| 45 | + bucket = "depthwise-temp", |
| 46 | + build_file = "//:BUILD.archive", |
| 47 | + file_path = "cloud_archive_test.tar.zst", |
| 48 | + sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73", |
| 49 | + strip_prefix = "dir1", |
| 50 | +) |
| 51 | + |
| 52 | +gs_archive( |
| 53 | + name = "archive_gcloud_zstd_strip2", |
| 54 | + bucket = "depthwise-temp", |
| 55 | + build_file = "//:BUILD.archive", |
| 56 | + file_path = "cloud_archive_test.tar.zst", |
| 57 | + sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73", |
| 58 | + strip_prefix = "dir1/dir2", |
| 59 | +) |
| 60 | + |
| 61 | +gs_archive( |
| 62 | + name = "archive_gcloud_zstd_patch", |
| 63 | + bucket = "depthwise-temp", |
| 64 | + build_file = "//:BUILD.archive", |
| 65 | + file_path = "cloud_archive_test.tar.zst", |
| 66 | + patch_args = ["-p1"], |
| 67 | + patches = ["//:test.patch"], |
| 68 | + sha256 = "1891c85349f519206a2a2aa21f4927146b8cf84db04d3be91e0b54ce564d8b73", |
| 69 | + strip_prefix = "dir1", |
| 70 | +) |
0 commit comments