Skip to content

Commit

Permalink
actually use the docker-output flag (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup authored Sep 6, 2024
1 parent d50429e commit cec8dbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ enum Commands {
/// https://docs.docker.com/reference/cli/docker/buildx/build/#output
#[arg(long)]
docker_output: Option<String>,

/// Specify the path to the Docker client certificates
#[arg(long)]
docker_cert_path: Option<String>,
Expand Down
4 changes: 4 additions & 0 deletions src/nixpacks/builder/docker/docker_image_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ impl DockerImageBuilder {
docker_build_cmd.arg("--cache-from").arg(value);
}

if let Some(value) = &self.options.docker_output {
docker_build_cmd.arg("--output").arg(value);
}

match &self.options.docker_host {
Some(value) => docker_build_cmd.env("DOCKER_HOST", value),
None => docker_build_cmd.env_remove("DOCKER_HOST"),
Expand Down

0 comments on commit cec8dbc

Please sign in to comment.