Skip to content

Commit

Permalink
Merge pull request #452 from yotamofek/master
Browse files Browse the repository at this point in the history
Add missing `BuildImageOptions::target` field
  • Loading branch information
fussybeaver authored Aug 19, 2024
2 parents 9574c61 + bcf4ae2 commit 03dbe34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async fn main() {
labels: build_image_labels,
networkmode: "host",
platform: "linux/x86_64",
target: "",
#[cfg(feature = "buildkit")]
session: None,
#[cfg(feature = "buildkit")]
Expand Down
2 changes: 2 additions & 0 deletions src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ where
pub networkmode: T,
/// Platform in the format `os[/arch[/variant]]`
pub platform: T,
/// Target build stage
pub target: T,
#[cfg(feature = "buildkit")]
/// Specify a custom exporter.
pub outputs: Option<ImageBuildOutput<T>>,
Expand Down

0 comments on commit 03dbe34

Please sign in to comment.