File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ def get_version(self) -> str:
69
69
"""Gets the version that will be used to tag the images."""
70
70
if self .scenario == BuildScenario .RELEASE :
71
71
return self .git_tag
72
+ if self .scenario == BuildScenario .STAGING :
73
+ # On master merges, always use "latest" (preserving legacy behavior)
74
+ return "latest"
72
75
if self .patch_id :
73
76
return self .patch_id
74
77
# Alternatively, we can fail here if no ID is explicitly defined
@@ -77,7 +80,10 @@ def get_version(self) -> str:
77
80
def get_base_registry (self ) -> str :
78
81
"""Get the base registry URL for the current scenario."""
79
82
# TODO CLOUDP-335471: when working on the promotion process, use the prod registry variable in RELEASE scenario
80
- if self .scenario == BuildScenario .STAGING :
81
- return os .environ .get ("STAGING_REPO_URL" )
82
- else :
83
- return os .environ .get ("BASE_REPO_URL" )
83
+ # TODO CLOUDP-335471: STAGING scenario should also push to STAGING_REPO_URL with version_id tag,
84
+ # in addition to the current ECR dev latest push (for backward compatibility)
85
+ # This will enable proper staging environment testing before production releases
86
+
87
+ # For now, always use BASE_REPO_URL to preserve legacy behavior
88
+ # (STAGING pushes to ECR dev with "latest" tag)
89
+ return os .environ .get ("BASE_REPO_URL" )
You can’t perform that action at this time.
0 commit comments