Merge pull request #828 from basecamp/configuration-validation

Configuration validation
This commit is contained in:
Donal McBreen
2024-06-18 08:31:47 +01:00
committed by GitHub
59 changed files with 1942 additions and 478 deletions

View File

@@ -11,17 +11,22 @@ class Kamal::Commands::Builder < Kamal::Commands::Base
end
def target
case
when !config.builder.multiarch? && !config.builder.cached?
native
when !config.builder.multiarch? && config.builder.cached?
native_cached
when config.builder.local? && config.builder.remote?
multiarch_remote
when config.builder.remote?
native_remote
if config.builder.multiarch?
if config.builder.remote?
if config.builder.local?
multiarch_remote
else
native_remote
end
else
multiarch
end
else
multiarch
if config.builder.cached?
native_cached
else
native
end
end
end