feat: update dagger 0.11.7
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -2,28 +2,30 @@ use dagger_rust::build::{RustVersion, SlimImage};
|
||||
|
||||
#[tokio::main]
|
||||
pub async fn main() -> eyre::Result<()> {
|
||||
let client = dagger_sdk::connect().await?;
|
||||
dagger_sdk::connect(|client| async move {
|
||||
let rust_build = dagger_rust::build::RustBuild::new(client.clone());
|
||||
|
||||
let rust_build = dagger_rust::build::RustBuild::new(client.clone());
|
||||
let containers = rust_build
|
||||
.build_release(
|
||||
Some("testdata"),
|
||||
RustVersion::Nightly,
|
||||
&["crates/*"],
|
||||
&["openssl"],
|
||||
vec![SlimImage::Debian {
|
||||
image: "debian:bookworm".into(),
|
||||
deps: vec!["openssl".into()],
|
||||
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||
}],
|
||||
"example_bin",
|
||||
)
|
||||
.await?;
|
||||
|
||||
let containers = rust_build
|
||||
.build_release(
|
||||
Some("testdata"),
|
||||
RustVersion::Nightly,
|
||||
&["crates/*"],
|
||||
&["openssl"],
|
||||
vec![SlimImage::Debian {
|
||||
image: "debian:bookworm".into(),
|
||||
deps: vec!["openssl".into()],
|
||||
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||
}],
|
||||
"example_bin",
|
||||
)
|
||||
.await?;
|
||||
|
||||
for container in containers {
|
||||
container.sync().await?;
|
||||
}
|
||||
for container in containers {
|
||||
container.sync().await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user