feat: fix errors
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-03-30 01:46:25 +01:00
parent 9ba98284ae
commit 8282f89640
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -37,7 +37,7 @@ pub mod drone_templater {
#[async_trait] #[async_trait]
impl MainAction for DroneTemplater { impl MainAction for DroneTemplater {
async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> { 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_host = std::env::var("DRONE_HOST");
let drone_user = std::env::var("DRONE_USER"); 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); let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token);
client self.client
.container() .container()
.from(DRONE_TEMPLATER_IMAGE) .from(DRONE_TEMPLATER_IMAGE)
.with_directory("/src/templates", src) .with_directory("/src/templates", src)
@ -57,7 +57,7 @@ pub mod drone_templater {
"drone-templater", "drone-templater",
"upload", "upload",
"--template", "--template",
self.template.display(), &self.template.display(),
]); ]);
Ok(()) Ok(())