feat: we don't always need to pull
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:
@@ -1,10 +1,13 @@
|
||||
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;
|
||||
|
||||
const BIN_NAME: &str = "cuddle-rust-cli-plan";
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
let client = dagger_sdk::connect().await?;
|
||||
@@ -27,16 +30,17 @@ async fn main() -> eyre::Result<()> {
|
||||
.with_apt_ca_certificates()
|
||||
.with_crates(["ci", "crates/*"])
|
||||
.with_mold("2.3.3")
|
||||
.with_bin_name("cuddle-rust-cli-plan")
|
||||
.with_bin_name(BIN_NAME)
|
||||
.with_deployment(false)
|
||||
.to_owned();
|
||||
|
||||
let service = Arc::new(Mutex::new(service));
|
||||
|
||||
let drone_templater = Arc::new(Mutex::new(drone_templater::DroneTemplater::new(
|
||||
client,
|
||||
"templates/cuddle-rust-cli-plan.yaml",
|
||||
)));
|
||||
let drone_templater = Arc::new(Mutex::new(
|
||||
DroneTemplater::new(client, "templates/cuddle-rust-cli-plan.yaml")
|
||||
.with_variable("bin_name", BIN_NAME)
|
||||
.to_owned(),
|
||||
));
|
||||
|
||||
CuddleCI::default()
|
||||
.with_pull_request(service.clone())
|
||||
|
Reference in New Issue
Block a user