@@ -4,7 +4,6 @@ use crate::prelude::*;
44
55use crate :: changelog:: Changelog ;
66use crate :: context:: BuildContext ;
7- use crate :: engine;
87use crate :: env:: ENSO_ADMIN_TOKEN ;
98use crate :: paths:: generated;
109use crate :: paths:: TargetTriple ;
@@ -17,7 +16,6 @@ use crate::version::Versions;
1716use ide_ci:: github;
1817use ide_ci:: io:: web:: handle_error_response;
1918use ide_ci:: programs:: Docker ;
20- use ide_ci:: programs:: Pnpm ;
2119use ide_ci:: programs:: SevenZip ;
2220use octocrab:: models:: repos:: Release ;
2321use octocrab:: params:: repos:: Reference ;
@@ -295,15 +293,9 @@ pub async fn deploy_runtime_to_ecr(context: &BuildContext, repository: String) -
295293///
296294/// Builds the polyglot Ydoc image and pushes it to our ECR.
297295pub async fn deploy_ydoc_polyglot_to_ecr ( context : & BuildContext , repository : String ) -> Result {
298- let sbt = engine:: sbt:: Context {
299- repo_root : context. repo_root . path . clone ( ) ,
300- system_properties : default ( ) ,
301- } ;
302- sbt. call_arg ( "ydoc-server/buildNativeImage" ) . await ?;
303296 let client = crate :: aws:: ecr:: client_from_env ( ) . await ;
304297 let repository_uri = crate :: aws:: ecr:: get_repository_uri ( & client, & repository) . await ?;
305- let tag_name = repository_uri. replace ( "/runtime" , "/ydoc-polyglot" ) ;
306- let tag = format ! ( "{}:{}" , tag_name, context. triple. versions. version) ;
298+ let tag = format ! ( "{}/{}:{}" , repository_uri, "ydoc-polyglot" , context. triple. versions. version) ;
307299 // We don't care about the image ID, we will refer to it by the tag.
308300 let _image_id = generate_ydoc_polyglot_image ( context, & tag) . await ?;
309301 let credentials = crate :: aws:: ecr:: get_credentials ( & client) . await ?;
@@ -315,12 +307,9 @@ pub async fn deploy_ydoc_polyglot_to_ecr(context: &BuildContext, repository: Str
315307///
316308/// Builds the Node.js Ydoc image and pushes it to our ECR.
317309pub async fn deploy_ydoc_nodejs_to_ecr ( context : & BuildContext , repository : String ) -> Result {
318- Pnpm . cmd ( ) ?. install ( ) . run_ok ( ) . await ?;
319- Pnpm . cmd ( ) ?. run ( "-r" ) . arg ( "compile" ) . run_ok ( ) . await ?;
320310 let client = crate :: aws:: ecr:: client_from_env ( ) . await ;
321311 let repository_uri = crate :: aws:: ecr:: get_repository_uri ( & client, & repository) . await ?;
322- let tag_name = repository_uri. replace ( "/runtime" , "/ydoc-nodejs" ) ;
323- let tag = format ! ( "{}:{}" , tag_name, context. triple. versions. version) ;
312+ let tag = format ! ( "{}/{}:{}" , repository_uri, "ydoc-nodejs" , context. triple. versions. version) ;
324313 // We don't care about the image ID, we will refer to it by the tag.
325314 let _image_id = generate_ydoc_nodejs_image ( context, & tag) . await ?;
326315 let credentials = crate :: aws:: ecr:: get_credentials ( & client) . await ?;
0 commit comments