feat: without extra stuff
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-03-30 23:51:33 +01:00
parent c5cf2ead22
commit 0eb59cb396
3 changed files with 71 additions and 29 deletions

View File

@@ -1,10 +1,8 @@
use std::sync::Arc;
use cuddle_ci::drone_templater::DroneTemplater;
use cuddle_ci::rust_service::architecture::{Architecture, Os};
use cuddle_ci::rust_service::{extensions::*, RustService};
use cuddle_ci::{drone_templater, CuddleCI};
use tokio::sync::Mutex;
use cuddle_ci::{CuddleCI};
const BIN_NAME: &str = "cuddle-rust-cli-plan";
@@ -12,7 +10,7 @@ const BIN_NAME: &str = "cuddle-rust-cli-plan";
async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
let service = RustService::from(client.clone())
let service = &RustService::from(client.clone())
.with_arch(Architecture::Amd64)
.with_os(Os::Linux)
.with_apt(&[
@@ -28,23 +26,20 @@ async fn main() -> eyre::Result<()> {
.with_cuddle_cli()
.with_kubectl()
.with_apt_ca_certificates()
.with_crates(["ci", "crates/*"])
.with_workspace_crates()
.await
.with_mold("2.3.3")
.with_bin_name(BIN_NAME)
.with_deployment(false)
.to_owned();
let service = Arc::new(Mutex::new(service));
let drone_templater = Arc::new(Mutex::new(
DroneTemplater::new(client, "templates/cuddle-rust-cli-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned(),
));
let drone_templater = &DroneTemplater::new(client, "templates/cuddle-rust-cli-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned();
CuddleCI::default()
.with_pull_request(service.clone())
.with_main(service.clone())
.with_pull_request(service)
.with_main(service)
.with_main(drone_templater)
.execute(std::env::args())
.await?;