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(())