feat: include drone templater in upload
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -2,14 +2,14 @@ use std::sync::Arc;
|
||||
|
||||
use cuddle_ci::rust_service::architecture::{Architecture, Os};
|
||||
use cuddle_ci::rust_service::{extensions::*, RustService};
|
||||
use cuddle_ci::CuddleCI;
|
||||
use cuddle_ci::{drone_templater, CuddleCI};
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
let client = dagger_sdk::connect().await?;
|
||||
|
||||
let service = RustService::from(client)
|
||||
let service = RustService::from(client.clone())
|
||||
.with_arch(Architecture::Amd64)
|
||||
.with_os(Os::Linux)
|
||||
.with_apt(&[
|
||||
@@ -33,9 +33,15 @@ async fn main() -> eyre::Result<()> {
|
||||
|
||||
let service = Arc::new(Mutex::new(service));
|
||||
|
||||
let drone_templater = Arc::new(Mutex::new(drone_templater::DroneTemplater::new(
|
||||
client,
|
||||
"cuddle-rust-cli-plan.yaml",
|
||||
)));
|
||||
|
||||
CuddleCI::default()
|
||||
.with_pull_request(service.clone())
|
||||
.with_main(service.clone())
|
||||
.with_main(drone_templater)
|
||||
.execute(std::env::args())
|
||||
.await?;
|
||||
|
||||
|
Reference in New Issue
Block a user