feat: with aborting
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:47:57 +01:00
parent 29c59f1ca6
commit a6d83daf4d
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -17,6 +17,7 @@ pub mod drone_templater {
const DRONE_TEMPLATER_IMAGE: &str = "kasperhermansen/drone-templater:main-1711758171"; const DRONE_TEMPLATER_IMAGE: &str = "kasperhermansen/drone-templater:main-1711758171";
use async_trait::async_trait; use async_trait::async_trait;
use eyre::Context;
use crate::MainAction; use crate::MainAction;
@ -39,9 +40,9 @@ pub mod drone_templater {
async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> { async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> {
let src = self.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").context("DRONE_HOST is missing")?;
let drone_user = std::env::var("DRONE_USER"); let drone_user = std::env::var("DRONE_USER").context("DRONE_USER is missing")?;
let drone_token = std::env::var("DRONE_TOKEN"); let drone_token = std::env::var("DRONE_TOKEN").context("DRONE_TOKEN is missing")?;
let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token); let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token);