Skip to content

Commit

Permalink
Enable/disable Docker TLS verification based on value in options
Browse files Browse the repository at this point in the history
  • Loading branch information
9trocode committed Aug 12, 2023
1 parent 87db473 commit 953f0ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nixpacks/builder/docker/docker_image_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ impl DockerImageBuilder {
}

if let Some(value) = &self.options.docker_tls_verify {
env::set_var("DOCKER_TLS_VERIFY", value);
if value == "1" {
env::set_var("DOCKER_TLS_VERIFY", value);
} else {
env::remove_var("DOCKER_TLS_VERIFY"); // Clear the variable to disable TLS verification
}
}

if self.options.inline_cache {
Expand Down

0 comments on commit 953f0ec

Please sign in to comment.