feat: with cuddle file setup
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-05 23:09:58 +02:00
parent 310df8f127
commit 00daeaf166
3 changed files with 10 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ tokio.workspace = true
dagger-sdk = "0.9.8"
eyre = { version = "0.6.12" }
tracing-subscriber.workspace = true
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" }

View File

@@ -11,10 +11,13 @@ use tokio::sync::Mutex;
#[tokio::main]
async fn main() -> eyre::Result<()> {
tracing_subscriber::fmt::init();
let client = dagger_sdk::connect().await?;
let cuddle_file = CuddleFile::from_cuddle_file().await?;
let service = &RustService::from(client.clone())
.with_cuddle_file(&cuddle_file)
.with_arch(Architecture::Amd64)
.with_os(Os::Linux)
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev", "protobuf-compiler"])
@@ -23,7 +26,6 @@ async fn main() -> eyre::Result<()> {
.with_workspace_crates()
.await
.with_mold("2.3.3")
.with_cuddle_file(&cuddle_file)
.to_owned();
let render = &RustServiceRender::default();