feat: with plan

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-05 21:31:00 +02:00
commit 91750d8a5d
18 changed files with 2674 additions and 0 deletions

View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,15 @@
[package]
name = "cuddle-node-service-plan"
version = "0.1.0"
edition = "2021"
[dependencies]
tokio.workspace = true
dagger-sdk = "0.9.8"
eyre = { version = "0.6.12" }
dagger-components = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
dagger-rust = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
cuddle-ci = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
async-trait = "0.1.79"

View File

@@ -0,0 +1,23 @@
use cuddle_ci::cuddle_file::CuddleFile;
use cuddle_ci::node_service::NodeService;
use cuddle_ci::rust_service::architecture::{Architecture, Os};
use cuddle_ci::CuddleCI;
#[tokio::main]
async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
let cuddle_file = CuddleFile::from_cuddle_file().await?;
let service = &NodeService::new(client.clone(), &cuddle_file.vars.service)
.with_arch(Architecture::Amd64)
.with_os(Os::Linux)
.to_owned();
CuddleCI::default()
.with_pull_request(service)
.with_main(service)
.execute(std::env::args())
.await?;
Ok(())
}