feat: without extra types
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:48:57 +01:00
parent 2c25e6e75b
commit e1d19c8fc1
3 changed files with 19 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ const BIN_NAME: &str = "cuddle-rust-service-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(&[
@@ -34,18 +34,14 @@ async fn main() -> eyre::Result<()> {
.with_deployment(false)
.to_owned();
let drone_templater = Arc::new(Mutex::new(
DroneTemplater::new(client, "templates/cuddle-rust-service-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned(),
));
let service = Arc::new(Mutex::new(service));
let drone_templater = &DroneTemplater::new(client, "templates/cuddle-rust-service-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned();
CuddleCI::default()
.with_pull_request(service.clone())
.with_main(service.clone())
.with_main(drone_templater.clone())
.with_pull_request(service)
.with_main(service)
.with_main(drone_templater)
.execute(std::env::args())
.await?;