Run pre-connect hooks before building

They might be needed for remote builds or the pre-build hook.
This commit is contained in:
Donal McBreen
2025-05-14 15:55:54 +01:00
parent 031f55ecf7
commit 2c1d6ed891
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ class Kamal::Cli::Build < Kamal::Cli::Base
def push
cli = self
# Ensure pre-connect hooks run before the build, they may needed for a remote builder
# or the pre-build hooks.
pre_connect_if_required
ensure_docker_installed
login_to_registry_locally