Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
29c59f1ca6
commit
a6d83daf4d
@ -17,6 +17,7 @@ pub mod drone_templater {
|
||||
const DRONE_TEMPLATER_IMAGE: &str = "kasperhermansen/drone-templater:main-1711758171";
|
||||
|
||||
use async_trait::async_trait;
|
||||
use eyre::Context;
|
||||
|
||||
use crate::MainAction;
|
||||
|
||||
@ -39,9 +40,9 @@ pub mod drone_templater {
|
||||
async fn execute_main(&self, _ctx: &mut crate::Context) -> eyre::Result<()> {
|
||||
let src = self.client.host().directory(".cuddle/tmp/");
|
||||
|
||||
let drone_host = std::env::var("DRONE_HOST");
|
||||
let drone_user = std::env::var("DRONE_USER");
|
||||
let drone_token = std::env::var("DRONE_TOKEN");
|
||||
let drone_host = std::env::var("DRONE_HOST").context("DRONE_HOST is missing")?;
|
||||
let drone_user = std::env::var("DRONE_USER").context("DRONE_USER is missing")?;
|
||||
let drone_token = std::env::var("DRONE_TOKEN").context("DRONE_TOKEN is missing")?;
|
||||
|
||||
let drone_token_secret = client.set_secret("DRONE_TOKEN", drone_token);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user