Validate multiarch configuration

Remote and local are only allowed when multiarch is enabled.
Remote requires a host and arch, local only requires an arch.
This commit is contained in:
Donal McBreen
2024-06-06 12:48:50 +01:00
committed by Donal McBreen
parent d6a5cf3c78
commit 374c117b79
2 changed files with 21 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ class Kamal::Commands::Builder::Base < Kamal::Commands::Base
delegate :argumentize, to: Kamal::Utils
delegate \
:args, :secrets, :dockerfile, :target, :local_arch, :local_host, :remote_arch, :remote_host,
:args, :secrets, :dockerfile, :target, :local_arch, :remote_arch, :remote_host,
:cache_from, :cache_to, :multiarch?, :ssh,
to: :builder_config