diff --git a/crates/cuddle-ci/src/rust_service/docker_cache.rs b/crates/cuddle-ci/src/rust_service/docker_cache.rs index 862bbfe..fe63c60 100644 --- a/crates/cuddle-ci/src/rust_service/docker_cache.rs +++ b/crates/cuddle-ci/src/rust_service/docker_cache.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use async_trait::async_trait; -use dagger_sdk::Container; +use dagger_sdk::{Container, ImageMediaTypes}; use crate::dagger_middleware::DaggerMiddleware; @@ -34,7 +34,14 @@ impl DaggerMiddleware for DockerCache { container .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?; } _ => {