From 8282f89640af2e52b86fc19129d7e06b00d78265 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 30 Mar 2024 01:46:25 +0100 Subject: [PATCH] feat: fix errors Signed-off-by: kjuulh --- crates/cuddle-ci/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cuddle-ci/src/lib.rs b/crates/cuddle-ci/src/lib.rs index ce8a093..8b9f570 100644 --- a/crates/cuddle-ci/src/lib.rs +++ b/crates/cuddle-ci/src/lib.rs @@ -37,7 +37,7 @@ pub mod drone_templater { #[async_trait] impl MainAction for DroneTemplater { async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> { - let src = client.host().directory(".cuddle/tmp/"); + let src = self.client.host().directory(".cuddle/tmp/"); let drone_host = std::env::var("DRONE_HOST"); let drone_user = std::env::var("DRONE_USER"); @@ -45,7 +45,7 @@ pub mod drone_templater { let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token); - client + self.client .container() .from(DRONE_TEMPLATER_IMAGE) .with_directory("/src/templates", src) @@ -57,7 +57,7 @@ pub mod drone_templater { "drone-templater", "upload", "--template", - self.template.display(), + &self.template.display(), ]); Ok(())