Don't include destination in clone directory

Reusing the clone directory should allow caching of the build context
between deployments to different destinations.
This commit is contained in:
Donal McBreen
2024-05-20 09:34:42 +01:00
parent 307750ff70
commit 0ea2a2c509

View File

@@ -96,7 +96,7 @@ class Kamal::Configuration::Builder
end
def clone_directory
@clone_directory ||= File.join Dir.tmpdir, "kamal-clones", [ @service, @destination, pwd_sha ].compact.join("-")
@clone_directory ||= File.join Dir.tmpdir, "kamal-clones", [ @service, pwd_sha ].compact.join("-")
end
def build_directory