Skip to content

Commit

Permalink
Make secrets optional for BuildxCLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Nov 19, 2024
1 parent 9a9f090 commit d5f4568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_on_whales/components/buildx/cli_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def build(
full_cmd.add_simple_arg("--cache-to", format_dict_for_buildx(cache_to))
else:
full_cmd.add_simple_arg("--cache-to", cache_to)
full_cmd.add_args_iterable_or_single("--secret", to_list(secrets))
if secrets:
full_cmd.add_args_iterable_or_single("--secret", to_list(secrets))
if output != {}:
full_cmd += ["--output", format_dict_for_buildx(output)]
if platforms is not None:
Expand Down

0 comments on commit d5f4568

Please sign in to comment.