feat: trying again with opts
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-12-01 22:36:44 +01:00
parent ec2a0f5779
commit 3cdd876e05
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -1,7 +1,7 @@
use std::sync::Arc; use std::sync::Arc;
use async_trait::async_trait; use async_trait::async_trait;
use dagger_sdk::Container; use dagger_sdk::{Container, ImageMediaTypes};
use crate::dagger_middleware::DaggerMiddleware; use crate::dagger_middleware::DaggerMiddleware;
@ -34,7 +34,14 @@ impl DaggerMiddleware for DockerCache {
container container
.with_registry_auth(&url, &username, secret) .with_registry_auth(&url, &username, secret)
.publish(&url) .publish_opts(
&url,
dagger_sdk::ContainerPublishOpts {
forced_compression: Some(dagger_sdk::ImageLayerCompression::Zstd),
media_types: Some(ImageMediaTypes::OCIMediaTypes),
platform_variants: None,
},
)
.await?; .await?;
} }
_ => { _ => {