From 0ea2a2c5090da941c5c4e455c76604fc7a3056fe Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Mon, 20 May 2024 09:34:42 +0100 Subject: [PATCH] Don't include destination in clone directory Reusing the clone directory should allow caching of the build context between deployments to different destinations. --- lib/kamal/configuration/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/configuration/builder.rb b/lib/kamal/configuration/builder.rb index ab9abb02..4663f11f 100644 --- a/lib/kamal/configuration/builder.rb +++ b/lib/kamal/configuration/builder.rb @@ -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