feat: with cuddle file setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
310df8f127
commit
00daeaf166
9
Cargo.lock
generated
9
Cargo.lock
generated
@ -307,7 +307,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "cuddle-ci"
|
||||
version = "0.2.0"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#924bcf8c8c09419b49fd816230dfa6bcabb9cc18"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#59748fb6e638411fb1c222c0c8e69fbd2d72d435"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"chrono",
|
||||
@ -336,17 +336,18 @@ dependencies = [
|
||||
"dagger-sdk",
|
||||
"eyre",
|
||||
"tokio",
|
||||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dagger-components"
|
||||
version = "0.1.0"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#924bcf8c8c09419b49fd816230dfa6bcabb9cc18"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#59748fb6e638411fb1c222c0c8e69fbd2d72d435"
|
||||
|
||||
[[package]]
|
||||
name = "dagger-cuddle-please"
|
||||
version = "0.2.0"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#924bcf8c8c09419b49fd816230dfa6bcabb9cc18"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#59748fb6e638411fb1c222c0c8e69fbd2d72d435"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"dagger-sdk",
|
||||
@ -356,7 +357,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "dagger-rust"
|
||||
version = "0.2.0"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#924bcf8c8c09419b49fd816230dfa6bcabb9cc18"
|
||||
source = "git+https://git.front.kjuulh.io/kjuulh/dagger-components?branch=main#59748fb6e638411fb1c222c0c8e69fbd2d72d435"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"dagger-sdk",
|
||||
|
@ -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" }
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user