pub struct PipelineImage {
pub file: PathBuf,
pub context: PathBuf,
pub tags: Vec<String>,
pub build_args: HashMap<String, String>,
pub depends_on: Vec<String>,
pub no_cache: Option<bool>,
pub format: Option<String>,
pub cache_mounts: Vec<ZCacheMount>,
pub retries: Option<u32>,
pub platforms: Vec<String>,
pub os: Option<ImageOs>,
}Expand description
Configuration for a single image in the pipeline.
§YAML Example
zlayer-app:
file: images/ZImagefile.app
context: "."
tags:
- "${REGISTRY}/app:${VERSION}"
- "${REGISTRY}/app:latest"
depends_on: [zlayer-base]
build_args:
EXTRA_ARG: "value"
no_cache: false
format: ociFields§
§file: PathBufPath to the build file (Dockerfile, ZImagefile, etc.)
context: PathBufBuild context directory. Defaults to “.”
Image tags to apply. Supports variable substitution.
build_args: HashMap<String, String>Build arguments specific to this image.
Merged with (and overrides) defaults.build_args.
depends_on: Vec<String>Names of images that must be built before this one. Creates a dependency graph for build ordering.
no_cache: Option<bool>Override no_cache setting for this image.
If None, inherits from defaults.
format: Option<String>Override output format for this image. If None, inherits from defaults.
cache_mounts: Vec<ZCacheMount>Cache mounts for this image’s RUN steps, merged with defaults
retries: Option<u32>Override retry count for this image
platforms: Vec<String>Target platforms for this image (overrides defaults.platforms). If empty, inherits from defaults.platforms.
os: Option<ImageOs>Target OS for this image. Overrides any OS inferred from platforms. Default: inferred or Linux.
Trait Implementations§
Source§impl Clone for PipelineImage
impl Clone for PipelineImage
Source§fn clone(&self) -> PipelineImage
fn clone(&self) -> PipelineImage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PipelineImage
impl Debug for PipelineImage
Source§impl<'de> Deserialize<'de> for PipelineImage
impl<'de> Deserialize<'de> for PipelineImage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PipelineImage
impl RefUnwindSafe for PipelineImage
impl Send for PipelineImage
impl Sync for PipelineImage
impl Unpin for PipelineImage
impl UnsafeUnpin for PipelineImage
impl UnwindSafe for PipelineImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more