From 52266599e230346091a66f4a85e67c4023d8262d Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 27 Nov 2023 18:11:58 +0100 Subject: [PATCH] feat: with rust service impl Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/rust_service.rs b/crates/cuddle-ci/src/rust_service.rs index 73b802f..ed1905b 100644 --- a/crates/cuddle-ci/src/rust_service.rs +++ b/crates/cuddle-ci/src/rust_service.rs @@ -305,7 +305,7 @@ impl RustService { #[async_trait] impl PullRequestAction for RustService { async fn execute_pull_request(&self) -> eyre::Result<()> { - let _container = self.build_release().await?; + self.build_test().await?; Ok(()) } @@ -314,6 +314,12 @@ impl PullRequestAction for RustService { #[async_trait] impl MainAction for RustService { async fn execute_main(&self) -> eyre::Result<()> { + let container = self.build_release().await?; + + container + .publish(format!("docker.io/kjuulh/{}", self.bin_name)) + .await?; + Ok(()) } }