|
19 | 19 |
|
20 | 20 | GORELEASER_DIST_DIR = "dist"
|
21 | 21 |
|
| 22 | + |
22 | 23 | def run_goreleaser():
|
23 | 24 | try:
|
24 | 25 | command = ["./goreleaser", "build", "--snapshot", "--clean", "--skip", "post-hooks"]
|
@@ -68,7 +69,7 @@ def upload_artifacts_to_s3(s3_bucket: str, version: str):
|
68 | 69 | for subdir in os.listdir(GORELEASER_DIST_DIR):
|
69 | 70 | subdir_path = os.path.join(GORELEASER_DIST_DIR, subdir)
|
70 | 71 | if not os.path.isdir(subdir_path):
|
71 |
| - continue # not a directory |
| 72 | + continue # not a directory |
72 | 73 |
|
73 | 74 | for filename in os.listdir(subdir_path):
|
74 | 75 | local_file_path = os.path.join(subdir_path, filename)
|
@@ -102,13 +103,14 @@ def s3_and_local_plugin_path(version: str) -> dict[str, str]:
|
102 | 103 | local_common_path = "docker/mongodb-kubernetes-tests"
|
103 | 104 | # path in s3 : local path
|
104 | 105 | return {
|
105 |
| - f"{s3_common_path}/kubectl-mongodb_linux_amd64_v1/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_amd64", |
106 |
| - f"{s3_common_path}/kubectl-mongodb_linux_arm64/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_arm64", |
107 |
| - f"{s3_common_path}/kubectl-mongodb_linux_ppc64le/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_ppc64le", |
108 |
| - f"{s3_common_path}/kubectl-mongodb_linux_s390x/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_s390x", |
| 106 | + f"{s3_common_path}/kubectl-mongodb_linux_amd64_v1/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_amd64", |
| 107 | + f"{s3_common_path}/kubectl-mongodb_linux_arm64/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_arm64", |
| 108 | + f"{s3_common_path}/kubectl-mongodb_linux_ppc64le/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_ppc64le", |
| 109 | + f"{s3_common_path}/kubectl-mongodb_linux_s390x/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_s390x", |
109 | 110 | }
|
110 | 111 |
|
111 |
| -# download_plugin_for_tests_image downloads the plugin for all the architectures and places them to the paths configured in |
| 112 | + |
| 113 | +# download_plugin_for_tests_image downloads the plugin for all the architectures and places them to the paths configured in |
112 | 114 | # s3_and_local_plugin_path
|
113 | 115 | def download_plugin_for_tests_image(build_scenario: BuildScenario, s3_bucket: str, version: str):
|
114 | 116 | try:
|
|
0 commit comments