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]]
|
[[package]]
|
||||||
name = "cuddle-ci"
|
name = "cuddle-ci"
|
||||||
version = "0.2.0"
|
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 = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"chrono",
|
"chrono",
|
||||||
@ -336,17 +336,18 @@ dependencies = [
|
|||||||
"dagger-sdk",
|
"dagger-sdk",
|
||||||
"eyre",
|
"eyre",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
"tracing-subscriber",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dagger-components"
|
name = "dagger-components"
|
||||||
version = "0.1.0"
|
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]]
|
[[package]]
|
||||||
name = "dagger-cuddle-please"
|
name = "dagger-cuddle-please"
|
||||||
version = "0.2.0"
|
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 = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"dagger-sdk",
|
"dagger-sdk",
|
||||||
@ -356,7 +357,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dagger-rust"
|
name = "dagger-rust"
|
||||||
version = "0.2.0"
|
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 = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"dagger-sdk",
|
"dagger-sdk",
|
||||||
|
@ -9,6 +9,8 @@ tokio.workspace = true
|
|||||||
dagger-sdk = "0.9.8"
|
dagger-sdk = "0.9.8"
|
||||||
eyre = { version = "0.6.12" }
|
eyre = { version = "0.6.12" }
|
||||||
|
|
||||||
|
tracing-subscriber.workspace = true
|
||||||
|
|
||||||
dagger-components = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
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" }
|
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" }
|
cuddle-ci = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||||
|
@ -11,10 +11,13 @@ use tokio::sync::Mutex;
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> eyre::Result<()> {
|
async fn main() -> eyre::Result<()> {
|
||||||
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
let client = dagger_sdk::connect().await?;
|
let client = dagger_sdk::connect().await?;
|
||||||
let cuddle_file = CuddleFile::from_cuddle_file().await?;
|
let cuddle_file = CuddleFile::from_cuddle_file().await?;
|
||||||
|
|
||||||
let service = &RustService::from(client.clone())
|
let service = &RustService::from(client.clone())
|
||||||
|
.with_cuddle_file(&cuddle_file)
|
||||||
.with_arch(Architecture::Amd64)
|
.with_arch(Architecture::Amd64)
|
||||||
.with_os(Os::Linux)
|
.with_os(Os::Linux)
|
||||||
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev", "protobuf-compiler"])
|
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev", "protobuf-compiler"])
|
||||||
@ -23,7 +26,6 @@ async fn main() -> eyre::Result<()> {
|
|||||||
.with_workspace_crates()
|
.with_workspace_crates()
|
||||||
.await
|
.await
|
||||||
.with_mold("2.3.3")
|
.with_mold("2.3.3")
|
||||||
.with_cuddle_file(&cuddle_file)
|
|
||||||
.to_owned();
|
.to_owned();
|
||||||
|
|
||||||
let render = &RustServiceRender::default();
|
let render = &RustServiceRender::default();
|
||||||
|
Loading…
Reference in New Issue
Block a user