Skip to content

Commit 97333b2

Browse files
committed
Fix release tasks
1 parent 44307ae commit 97333b2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.evergreen-functions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ functions:
845845
- triggered_by_git_tag
846846
- OPERATOR_VERSION
847847
- STAGING_VERSION_OVERRIDE
848+
- SKIP_GITHUB_RELEASE_UPLOAD
848849
env:
849850
MACOS_NOTARY_KEY: ${macos_notary_keyid}
850851
MACOS_NOTARY_SECRET: ${macos_notary_secret}

scripts/release/kubectl_mongodb/promote_kubectl_plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def main():
6363
s3_artifacts = artifacts_dict | artifacts_tar_dict | checksum_file_dict
6464
promote_artifacts_to_s3(s3_artifacts, release_version, release_scenario_bucket_name)
6565

66-
github_artifacts = artifacts_tar + [checksum_file]
67-
upload_assets_to_github_release(github_artifacts, release_version)
66+
if os.environ.get("SKIP_GITHUB_RELEASE_UPLOAD", "false").lower() == "false":
67+
github_artifacts = artifacts_tar + [checksum_file]
68+
upload_assets_to_github_release(github_artifacts, release_version)
6869

6970

7071
# get_commit_from_tag gets the commit associated with a release tag, so that we can use that

scripts/release/publish_helm_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_oci_registry(chart_info: HelmChartInfo) -> str:
7979
raise ValueError("Error: registry doesn't seem to be set in HelmChartInfo.")
8080

8181
if not repo:
82-
raise ValueError("Error: reposiotry doesn't seem to be set in HelmChartInfo.")
82+
raise ValueError("Error: repository doesn't seem to be set in HelmChartInfo.")
8383

8484
oci_registry = f"oci://{registry}/{repo}"
8585
logger.info(f"Determined OCI Registry: {oci_registry}")

0 commit comments

Comments
 (0)