File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
backend/application/import_observations/api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ def post(self, request: Request) -> Response:
124124 if not branch :
125125 branch = Branch .objects .create (product = product , name = branch_name )
126126 digest = subprocess .check_output (
127- "crane digest docker .stackable.tech/stackable /" + branch .product .name + ":" + branch .name ,
127+ "crane digest oci .stackable.tech/sdp /" + branch .product .name + ":" + branch .name ,
128128 shell = True ,
129129 ).rstrip ()
130130 arch = branch .name .split ("-" )[- 1 ]
131131 branch .purl = (
132132 f"pkg:oci/{ branch .product .name } @{ urllib .parse .quote_plus (digest )} "
133- f"?arch={ arch } &repository_url=docker .stackable.tech%2Fstackable %2F{ branch .product .name } "
133+ f"?arch={ arch } &repository_url=oci .stackable.tech%2Fsdp %2F{ branch .product .name } "
134134 )
135135 branch .save ()
136136
@@ -271,13 +271,13 @@ def _get_product_branch_by_name(request_serializer: Serializer) -> tuple[Product
271271 if not branch :
272272 branch = Branch .objects .create (product = product , name = branch_name )
273273 digest = subprocess .check_output (
274- "crane digest docker .stackable.tech/stackable /" + branch .product .name + ":" + branch .name ,
274+ "crane digest oci .stackable.tech/sdp /" + branch .product .name + ":" + branch .name ,
275275 shell = True ,
276276 ).rstrip ()
277277 arch = branch .name .split ("-" )[- 1 ]
278278 branch .purl = (
279279 f"pkg:oci/{ branch .product .name } @{ urllib .parse .quote_plus (digest )} "
280- f"?arch={ arch } &repository_url=docker .stackable.tech%2Fstackable %2F{ branch .product .name } "
280+ f"?arch={ arch } &repository_url=oci .stackable.tech%2Fsdp %2F{ branch .product .name } "
281281 )
282282 branch .save ()
283283 return product , branch
You can’t perform that action at this time.
0 commit comments