Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
ec2a0f5779
commit
3cdd876e05
@ -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?;
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
Loading…
Reference in New Issue
Block a user