Builder::Remote.inspect_builder requires both checks to pass

Previously, if either of the builder or the remote context were in a
bad state, the build would proceed anyway and fail.
This commit is contained in:
Mike Dalessio
2025-07-17 11:06:52 -04:00
parent 4b88852aea
commit 8e470ed051
2 changed files with 19 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ class Kamal::Commands::Builder::Remote < Kamal::Commands::Builder::Base
def inspect_builder
combine \
combine inspect_buildx, inspect_remote_context,
combine(inspect_buildx, inspect_remote_context),
[ "(echo no compatible builder && exit 1)" ],
by: "||"
end